G
G
GrimJack2017-05-10 22:06:42
Docker
GrimJack, 2017-05-10 22:06:42

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

Correct, maybe somewhere else with the options is wrong, from the height of your experience. Perhaps there is a normal Russian-language manual on the basics of working with docker (Google smoked, solid copy-paste from Google Translate)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Romanov, 2017-05-12
@Roman_Romanov

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 question

Ask a Question

731 491 924 answers to any question