Answer the question
In order to leave comments, you need to log in
How to run a container without autocomplete?
Hello everyone, I'm learning docker.
Once it turned out to start the container normally, but then the line was lost and now at startup, after leaving the container, it is cut down. How to run it without autocompletion?
I run it like this:
docker run -v /srv/example.ru:/var/www/example.ru --name example.ru -d igontarev/php-server bash
Answer the question
In order to leave comments, you need to log in
the container ends its work exactly when any processes in the container are completed. For example, if this is a container with nginx, then in the dockerfile so that nginx is not daemonized - CMD ["nginx", "-g", "daemon off;"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question