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

Can't get registry work on windows #1

Open
crabhit opened this issue May 5, 2015 · 3 comments
Open

Can't get registry work on windows #1

crabhit opened this issue May 5, 2015 · 3 comments

Comments

@crabhit
Copy link

crabhit commented May 5, 2015

I can't get registry run on windows. Here are my steps.

  1. cd docker-mesos-infra
  2. run vagrant up registry.
  3. ping 192.168.33.19, OK
  4. Ssh to registry. But there are no docker running.
@crabhit
Copy link
Author

crabhit commented May 6, 2015

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

@crabhit
Copy link
Author

crabhit commented May 6, 2015

I saw something that may related to this error:

==> registry: Debug: Executing '/sbin/status docker'
==> registry: Debug: Executing '/sbin/initctl --version'
==> registry: Debug: Executing '/sbin/status docker'
==> registry: Debug: Executing '/sbin/stop docker'
==> registry: Debug: Executing '/sbin/start docker'
==> registry: Notice: /Stage[main]/Docker::Service/Service[docker]: Triggered 'refresh' from 2 events
==> registry: Debug: /Stage[main]/Docker::Service/Service[docker]: The container Class[Docker::Service] will propagate my refresh event
==> registry: Debug: Class[Docker::Service]: The container Stage[main] will propagate my refresh event
==> registry: Debug: Execdocker pull registry: Executing check 'docker images | grep ^registry'
==> registry: Debug: Executing 'docker images | grep ^registry'
==> registry: Debug: /Stage[main]/Registry::Install/Docker::Image[registry]/Exec[docker pull registry]/unless: time="2015-05-06T07:35:45Z" level=fatal msg="Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?"
==> registry: Debug: Execdocker pull registry: Executing 'docker pull registry'
==> registry: Debug: Executing 'docker pull registry'
==> registry: Notice: /Stage[main]/Registry::Install/Docker::Image[registry]/Exec[docker pull registry]/returns: time="2015-05-06T07:35:46Z" level=fatal msg="Post http:///var/run/docker.sock/v1.18/images/create?fromImage=registry%3Alatest: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?"
==> registry: Error: docker pull registry returned 1 instead of one of [0]
==> registry:
==> registry: Error: /Stage[main]/Registry::Install/Docker::Image[registry]/Exec[docker pull registry]/returns: change from notrun to 0 failed: docker pull registry returned 1 instead of one of [0]

@crabhit
Copy link
Author

crabhit commented May 6, 2015

Then I ssh to the registry server. The docker is not running.
vagrant@registry:~$ service docker status
docker stop/waiting

I tried to start/restart, doesn't work.

But looks like I can start docker by sudo docker -d
vagrant@registry:~$ sudo docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
INFO[0000] +job init_networkdriver()
INFO[0000] -job init_networkdriver() = OK (0)
WARN[0000] Your kernel does not support cgroup swap limit.
INFO[0000] Loading containers: start.

INFO[0000] Loading containers: done.
INFO[0000] docker daemon: 1.6.0 4749651; execdriver: native-0.2; graphdriver: aufs
INFO[0000] +job acceptconnections()
INFO[0000] -job acceptconnections() = OK (0)
INFO[0000] Daemon has completed initialization

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