minideb
minideb copied to clipboard
Keep a minideb container running for tests
sorry, new to this but I pulled a copy of "minideb" but i cant keep it running, I tried for example
FROM bitnami/minideb
CMD /bin/bash
Everytime I run
docker pull bitnami/minideb:latest && docker container run bitnami/minideb
the container exits immediately so I want to keep it up to try to see what i can install, how it works, etc
If you want to keep a container running you need to specify a long running command for it to execute and not exit.
If you want to launch a shell and make it interactive you will need something like:
docker run -it --rm bitnami/minideb sh
-it will tell Docker to run the container in an interactive mode with a virtual tty
--rm will tell Docker to remove the container once it exits.