I need to share the application logs to mounted volume.
I want to mount same volume to all docker containers to keep the logs.
is it possible? will it effect the application running on each container?
docker run -d --name C1 -v /home/ubuntu/logs:/usr/local/apache/htdocs/ httpd
docker run -d --name C2 -v /home/ubuntu/logs:/etc/app/logs my-docker-image:latest
docker run -d --name C3 -v /home/ubuntu/logs:/usr/logs TestImage:latest
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…