Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
from docker Use bind mounts
$ docker run -d \
-it \
--name devtest \
--mount type=bind,source="$(pwd)"/target,target=/app \
--mount type=bind,source="$(pwd)"/target,target=/app2,readonly,bind-propagation=rslave \
nginx:latest
List a few. What is the difficulty?
docker run -it --rm --name QnA \
-v /home/User/site1:/var/www/site1 \
-v /home/User/site2:/var/www/site2 \
-v /home/User/site3:/var/www/site3 \
nginx
docker commit QnA savedImage # сохранит образ
docker run --name QnA_v2 \
-v /home/User/site4:/var/www/site4 \
savedImage
# убедиться, что всё норм. Остановить старый, пользоваться новым.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question