Answers for "docker mount volume"

9

docker mount volume

docker run -v /host/directory:/container/directory -other -options image_name command_to_run
Posted by: Guest on September-16-2020
0

docker exec mount volume

#make sure that you are inside the same directory
docker run -v pwd:/container/directory -other -options image_name command_to_run
Posted by: Guest on February-13-2021
0

volume mount docker

$ docker service create -d \
  --replicas=4 \
  --name devtest-service \
  --mount source=myvol2,target=/app \
  nginx:latest
Posted by: Guest on September-05-2021
0

docker create volume

docker volume create [OPTIONS] [VOLUME]
Posted by: Guest on October-05-2020
0

docker volumes copy content

CID=$(docker run -d -v hello:/hello busybox true)
docker cp $CID:/hello ./
Posted by: Guest on January-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language