Mac installs Dockertoolbox and launches Docker

Source: Internet
Author: User

Mac installs Dockertoolbox and launches Docker


? ~

Docker version

Client:

version:1.8.1

API version:1.20

Go version:go1.4.2

Git commit:d12ea79

Built:thu 02:49:29 UTC 2015

Os/arch:darwin/amd64

Get http:///var/run/docker.sock/v1.20/version:dial unix/var/run/docker.sock:no such file or directory.

* is trying to connect to a tls-enabled daemon without TLS?

* Is your Docker daemon up and running?


Need to install VMS

And then start again, or an error:


Machine default already exists in VirtualBox.

Starting machine Default ...

Starting VM ...


Started machines May has the new IP addresses. Need to re-run the ' docker-machine env ' command.

Setting environment variables for machine default ...


##         .

## ## ##        ==

## ## ## ## ##    ===

/"""""""""""""""""\___/ ===

~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~

\______ o __/

\    \         __/

\____\_______/



Docker is configured to use the default machine with IP 192.168.99.100

For help getting Started, check out the docs at https://docs.docker.com


Open/users/ylchou/.docker/machine/machines/default/ca.pem:no such file or directory

bash-3.2$


Pass

Find/-name Ca.pem

You can see that there are CA.PEM in the directory

/users/ylchou/.docker/machine/certs/ca.pem

Copy to the/users/ylchou/.docker/machine/machines/default/directory

Cp/users/ylchou/.docker/machine/certs/ca.pem/users/ylchou/.docker/machine/machines/default



Start Again, error:

Docker is configured to use the default machine with IP 192.168.99.100

For help getting Started, check out the docs at https://docs.docker.com


Open/users/ylchou/.docker/machine/machines/default/server.pem:no such file or directory


Can ping through 192.168.99.100

? Default

Ping 192.168.99.100

PING 192.168.99.100 (192.168.99.100): Data bytes

Bytes from 192.168.99.100:icmp_seq=0 ttl=64 time=0.409 ms

Bytes from 192.168.99.100:icmp_seq=1 ttl=64 time=0.504 ms

Bytes from 192.168.99.100:icmp_seq=2 ttl=64 time=0.242 ms

Bytes from 192.168.99.100:icmp_seq=3 ttl=64 time=0.994 ms

^c

---192.168.99.100 ping statistics---

4 packets transmitted, 4 packets received, 0.0% packet loss

Round-trip Min/avg/max/stddev = 0.242/0.537/0.994/0.280 ms


Bash-c "Clear && docker_host=tcp://192.168.99.100:2376 docker_cert_path=/users/ylchou/.docker/machine/ Machines/default docker_tls_verify=1/bin/zsh "
Bash-c "Clear && docker_host=tcp://192.168.99.100:2376 docker_cert_path=/users/ylchou/.docker/machine/ Machines/default docker_tls_verify=1 DOCKER exec-it busybox_hehe sh "



Mac installs Dockertoolbox and launches Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.