docker mount volume
docker run -v /host/directory:/container/directory -other -options image_name command_to_run
docker mount volume
docker run -v /host/directory:/container/directory -other -options image_name command_to_run
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
volume mount docker
$ docker service create -d \
--replicas=4 \
--name devtest-service \
--mount source=myvol2,target=/app \
nginx:latest
docker create volume
docker volume create [OPTIONS] [VOLUME]
docker volumes copy content
CID=$(docker run -d -v hello:/hello busybox true)
docker cp $CID:/hello ./
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us