minideb icon indicating copy to clipboard operation
minideb copied to clipboard

Keep a minideb container running for tests

Open ToNotNo1 opened this issue 5 years ago • 1 comments

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

ToNotNo1 avatar May 24 '20 00:05 ToNotNo1

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.

chipironcin avatar May 24 '20 16:05 chipironcin