Skip to content
Advertisement

Tag: docker-volume

Docker mount volume specify path

please I really need help creating a docker volume. By default, when I create a volume, its location will be /var/lib/docker/volumes/ I need to change this default location to my SSD disk, specifically /media/username/T7/docker/volumes Please how do I make sure the docker I run will be stored in my SSD rather than the default location? I will be using this

Mount seeded volume on linux host

I’d like to create a Database image and seed it with some initial data. This seems to work fine, since I’m able to create a container with a volume managed by docker. However, when I try to mount the volume to a directory on my linux host machine, it is created empty instead of seeded. After several hours of trying

Can’t create Docker volume using absolute path on Linux

I’m getting the following error message when trying to run a Docker container with which I want to share some data via a directory (I added the emphasis): ##[error]/usr/bin/docker: Error response from daemon: create -v /opt/vsts/work/1/s/coverage: “-v /opt/vsts/work/1/s/coverage” includes invalid characters for a local volume name, only “[a-zA-Z0-9][a-zA-Z0-9_.-]” are allowed. If you intended to pass a host directory, use absolute

Advertisement