On Ubuntu/Debian: sudo apt install screen
On Red Hat: sudo yum install screen
-
Start a screen session (named "ContainerFit", for convenience):
screen -S ContainerFit
-
Start ContainerFit in interactive mode w/ all of the necessary parameters:
~/fitstack/ContainerFit -m myapp:latest -n
-
At ContainerFit's interactive shell prompt, press
CTRL-a
and thend
to detach the screen session. -
Run the desired tests (e.g. over the course of hours or days). While the tests are running, feel free to logout of the shell, as the screen session will keep ContainerFit running while you're logged out.
-
When testing is complete, reattach the screen session:
screen -r ContainerFit
-
Exit the ContainerFit interactive shell. The debloating process will kick off, and a new results HTML file as well as a debloated image will be generated.
-
Once ContainerFit completes, simply exit the
screen
shell to exitscreen
.