Expected behavior
Starting a container with an existing data volume should mount that data volume.
Actual behavior
docker: Error response from daemon: missing device in volume options.
Steps to reproduce the behavior
- Create a data volume.
docker volume create --name mysqldata
- Mount the volume in a container.
docker run --rm -it -v mysqldata:/var/lib/mysql mysql:5.5 /bin/bash
- Reboot the computer.
- Mount the volume in a container.
docker run --rm -it -v mysqldata:/var/lib/mysql mysql:5.5 /bin/bash
Now docker responds with an error.
docker: Error response from daemon: missing device in volume options.
See 'docker run --help'.
I noticed this after updating to beta 23.
How do I recover the data volume?
Information
Docker for Mac: version: 2f0427a
OS X: version 10.11.6 (build: 15G31)
logs: /tmp/DE98ED6A-CF8C-42C0-B387-CB3A5C604478/20160821-085104.tar.gz
[OK] docker-cli
[OK] virtualization kern.hv_support
[OK] menubar
[OK] moby-syslog
[OK] dns
[OK] disk
[OK] system
[OK] app
[OK] osxfs
[OK] virtualization VT-X
[OK] db
[OK] slirp
[OK] logs
[OK] env
[OK] vmnetd
[OK] moby-console
[OK] moby
[OK] driver.amd64-linux