Docker Community Forums

Share and learn in the Docker community.

Docker Build -t executes fine but does not create volume


(Mvmattheis) #1

I ran the docker build routine to a successful end-of-job but it does not seem to have created the volume. When I try docker run -it --rm -pm8888:8888 -p 6006:6006 -v ~/notebooks:/notebooks --name mynotebooks container_name:1.4 /bin/bash I get "Error response from daemon:invalid volume specification: ‘~/notebooks:/notebooks’.
$> docker volume ls returns:
DRIVER VOLUME NAME and nothing else

shall I rerun the docker build routine?