webdevops / vagrant-docker-vm

:computer: Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)

Home Page:https://webdevops.io/projects/vagrant-docker-vm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Daemon sometimes not running

RainerBlessing opened this issue · comments

Sometimes if I start the VM (Virtualbox, Windows Host) the Docker service is not running.

Jun 07 09:02:20 DEV-VM systemd[1]: Started docker.service.
Jun 07 09:02:20 DEV-VM dockerd[988]: time="2017-06-07T09:02:20.607956921Z" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting --tlsverify
Jun 07 09:02:20 DEV-VM dockerd[988]: listen tcp 192.168.56.2:2375: bind: cannot assign requested address
Jun 07 09:02:20 DEV-VM systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jun 07 09:02:20 DEV-VM systemd[1]: docker.service: Unit entered failed state.
Jun 07 09:02:20 DEV-VM systemd[1]: docker.service: Failed with result 'exit-code'.

Please post docker version and docker info

vagrant@DEV-VM ~/projects/projectname (git)-[master] % docker info
Containers: 7
 Running: 3
 Paused: 0
 Stopped: 4
Images: 15
Server Version: 17.05.0-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 91
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-31-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.953GiB
Name: DEV-VM
ID: OL3D:E7KE:HG35:VN2R:6AHV:Q47M:VUWA:TGIY:7YUL:RMVZ:MIZQ:CS7C
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
vagrant@DEV-VM ~/projects/projectname (git)-[master] % docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64
 Experimental: false

Can you check journalctl for other errors?

The problem seems to be that the inferface enp0s8 is not started. If it's not up it does not show up in the log but it gets started later, because ssh access is possible.

Unsuccessful:
missing_interface
Successful:
interface_present

I updated Vagrant from version 1.8.6 to 1.9.5. Restarting the VM four times was successful. So I think the upgrade fixed the issue.