docker create volume
$ docker volume create hello
hello
$ docker run -d -v hello:/world busybox ls /world
docker create volume
$ docker volume create hello
hello
$ docker run -d -v hello:/world busybox ls /world
docker add volumes to running container
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5a8f89adeead ubuntu:14.04 "/bin/bash" About a minute ago Exited (0) About a minute ago agitated_newton
$ docker commit 5a8f89adeead newimagename
$ docker run -ti -v "$PWD/somedir":/somedir newimagename /bin/bash
docker create volume
docker volume create [OPTIONS] [VOLUME]
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