Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to local daemon #1

Open
lowks opened this issue May 16, 2016 · 0 comments
Open

Cannot connect to local daemon #1

lowks opened this issue May 16, 2016 · 0 comments

Comments

@lowks
Copy link

lowks commented May 16, 2016

The local daemon is running:

(ansible_test) ~/ansible-flask-example ❯❯❯ sudo service docker status                                                                  master
[sudo] password for lowks: 
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Isn 2016-05-16 15:44:25 MYT; 20min ago
     Docs: https://docs.docker.com
 Main PID: 11030 (docker)
    Tasks: 10
   Memory: 11.6M
      CPU: 766ms
   CGroup: /system.slice/docker.service
           └─11030 /usr/bin/docker daemon -H fd://

Mei 16 15:44:24 lowkster-laptop docker[11030]: time="2016-05-16T15:44:24.730479407+08:00" level=info msg="Firewalld running: false"
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.090426421+08:00" level=info msg="Default bridge (docker0) is assigned
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.872717944+08:00" level=warning msg="Your kernel does not support swap
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.926070283+08:00" level=info msg="Loading containers: start."
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.926117606+08:00" level=info msg="Loading containers: done."
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.926127029+08:00" level=info msg="Daemon has completed initialization"
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.926137294+08:00" level=info msg="Docker daemon" commit=20f81dd execdr
Mei 16 15:44:25 lowkster-laptop systemd[1]: Started Docker Application Container Engine.
Mei 16 15:44:25 lowkster-laptop docker[11030]: time="2016-05-16T15:44:25.930581015+08:00" level=info msg="API listen on /var/run/docker.sock"
Mei 16 15:45:16 lowkster-laptop systemd[1]: Started Docker Application Container Engine.

But when I run the command ansible-test app it spits out this:

(ansible_test) ~/ansible-flask-example ❯❯❯ ansible-test app                                                                            master
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Traceback (most recent call last):
  File "/home/lowks/virtualenvs/ansible_test/bin/ansible-test", line 69, in <module>
    main(context)
  File "/home/lowks/virtualenvs/ansible_test/bin/ansible-test", line 45, in main
    '-t', DOCKER_CONTAINER, '.']
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'build', '-t', 'testbox', '.']' returned non-zero exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant