Fred.G
Fred.G

Reputation: 1

Docker container volume not mounting

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

Upvotes: 0

Views: 460

Answers (1)

Karan Kumar
Karan Kumar

Reputation: 3176

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

Upvotes: 0

Related Questions