I'm working with an mantis container: https://hub.docker.com/r/vimagick/mantisbt
On my linux instance I mounted an EFS volume in /mnt/TestMnt/ folder.
So I would like to mount my docker content files directly in my EFS share throught the mounted volume (TestMnt). Problem is when I run docker run commandlet, container is running well (but in reality it doens't work:) ) without error message, and I've got no files appearing in the EFS share. Any idea?
Here is the command I ran: docker run -v /mnt/TestMnt/:/var/www/html/ -d --name Mantis -p 85:80 vimagick/mantisbt:latest
Thank you
Do you have /var/html/html folder inside that custom image of yours? If not then add this line in the Dockerfile first and then build the image again:
ADD. /path/inside/docker/container
You can also try this first, since this seems to be the better way and it works for me as well:
docker run -it --mount src=/mnt/TestMnt/,target=/var/www/html/,type=bind k3_s3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.