docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.22k stars 1.23k forks source link

Docker run Hello-World error x509: certificate signed by unknown authority #603

Closed GHrw62 closed 7 years ago

GHrw62 commented 7 years ago

Using the toolbox MINGW64 Bash command docker-machine ssh default then docker run hello-world docker: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority.

Get the same error when running the same command with the MINGW64 Bash command line.

Also get the same error using MINGW64 with docker login and enter my userID and password:

$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: ****
Password: ****
Error response from daemon: Get https://index.docker.io/v1/users/: x509: certificate signed by unknown authority

This is a new install on Windows 7 Enterprise. No proxy or VPN being used. My docker versions are below:

Client:
 Version:      1.12.2
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   bb80604
 Built:        Tue Oct 11 17:00:50 2016
 OS/Arch:      windows/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Wed Oct 26 23:26:11 2016
 OS/Arch:      linux/amd64

Here is the docker.log

/usr/local/bin/docker daemon -D -g "/var/lib/docker" -H unix:// -H tcp://0.0.0.0:2376
--label provider=virtualbox

 --tlsverify --tlscacert=/var/lib/boot2docker/ca.pem --tlscert=/var/lib/boot2docker/server.pem --tlskey=/var/lib/boot2docker/server-key.pem -s aufs >> "/var/lib/boot2docker/docker.log"
time="2016-12-02T17:40:30.744686465Z" level=debug msg="Trusting 1 certs"
time="2016-12-02T17:40:30.744757096Z" level=debug msg="docker group found. gid: 100"
time="2016-12-02T17:40:30.744773618Z" level=debug msg="Listener created for HTTP on unix (/var/run/docker.sock)"
time="2016-12-02T17:40:30.745164208Z" level=debug msg="Listener created for HTTP on tcp (0.0.0.0:2376)"
time="2016-12-02T17:40:30.749858087Z" level=info msg="libcontainerd: new containerd process, pid: 1403"
time="2016-12-02T17:40:30.751232622Z" level=debug msg="libcontainerd: containerd connection state change: TRANSIENT_FAILURE"
time="2016-12-02T17:40:30.754248386Z" level=debug msg="containerd: read past events" count=0
time="2016-12-02T17:40:30.754312675Z" level=debug msg="containerd: supervisor running" cpus=1 memory=995 runtime=docker-runc runtimeArgs=[] stateDir="/var/run/docker/libcontainerd/containerd"
time="2016-12-02T17:40:30.754433105Z" level=debug msg="containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock"
time="2016-12-02T17:40:31.752647725Z" level=debug msg="Using default logging driver json-file"
time="2016-12-02T17:40:31.752690751Z" level=debug msg="Golang's threads limit set to 6840"
time="2016-12-02T17:40:31.752721505Z" level=debug msg="[graphdriver] trying provided driver \"aufs\""
time="2016-12-02T17:40:31.756491840Z" level=debug msg="Using graph driver aufs"
time="2016-12-02T17:40:31.756755448Z" level=debug msg="Max Concurrent Downloads: 3"
time="2016-12-02T17:40:31.756769285Z" level=debug msg="Max Concurrent Uploads: 5"
time="2016-12-02T17:40:31.758545195Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-12-02T17:40:31.758669664Z" level=warning msg="Your kernel does not support cgroup blkio weight"
time="2016-12-02T17:40:31.758682044Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
time="2016-12-02T17:40:31.758984336Z" level=debug msg="Option DefaultDriver: bridge"
time="2016-12-02T17:40:31.758994250Z" level=debug msg="Option DefaultNetwork: bridge"
time="2016-12-02T17:40:31.764196394Z" level=debug msg="Fail to initialize firewalld: Failed to connect to D-Bus system bus: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory, using raw iptables instead"
time="2016-12-02T17:40:31.764892490Z" level=debug msg="/usr/local/sbin/iptables, [--wait --version]"
time="2016-12-02T17:40:31.765543798Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.772927899Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER]"
time="2016-12-02T17:40:31.773677414Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.774327019Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D PREROUTING]"
time="2016-12-02T17:40:31.774928100Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D OUTPUT]"
time="2016-12-02T17:40:31.775544188Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -F DOCKER]"
time="2016-12-02T17:40:31.776085017Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -X DOCKER]"
time="2016-12-02T17:40:31.776626424Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -F DOCKER]"
time="2016-12-02T17:40:31.777206016Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -X DOCKER]"
time="2016-12-02T17:40:31.777755328Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -F DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.778304247Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -X DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.778845101Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -n -L DOCKER]"
time="2016-12-02T17:40:31.779393672Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -N DOCKER]"
time="2016-12-02T17:40:31.779994206Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -n -L DOCKER]"
time="2016-12-02T17:40:31.780561001Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -N DOCKER]"
time="2016-12-02T17:40:31.781207318Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -n -L DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.781791215Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -N DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.782346071Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C DOCKER-ISOLATION -j RETURN]"
time="2016-12-02T17:40:31.783018224Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I DOCKER-ISOLATION -j RETURN]"
time="2016-12-02T17:40:31.787270767Z" level=warning msg="Could not load necessary modules for IPSEC rules: Running modprobe xfrm_user failed with message: `modprobe: module xfrm_user not found in modules.dep`, error: exit status 1"
time="2016-12-02T17:40:31.787346607Z" level=debug msg="Did not find any interface with name docker0: Link not found"
time="2016-12-02T17:40:31.789910140Z" level=debug msg="Setting bridge mac address to 02:42:0d:c5:90:dc"
time="2016-12-02T17:40:31.789997612Z" level=debug msg="Assigning address to bridge interface docker0: 172.17.0.1/16"
time="2016-12-02T17:40:31.790053336Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.790895486Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.793281905Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.793927677Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -I DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.794558636Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -i docker0 -o docker0 -j DROP]"
time="2016-12-02T17:40:31.795173446Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.795764807Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.796351001Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.796938536Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.797557497Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.798218826Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.798875539Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.799561268Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.800206353Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8]"
time="2016-12-02T17:40:31.800845743Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -A OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8]"
time="2016-12-02T17:40:31.801556457Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.802147116Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.802737882Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -j DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.803331101Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -j DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.804007143Z" level=debug msg="Network (769a472) restored"
time="2016-12-02T17:40:31.817909885Z" level=debug msg="Allocating IPv4 pools for network bridge (769a4727f21c2c93bc5ab0d73b2221bf589b61d72286703044df82dff4404bdb)"
time="2016-12-02T17:40:31.817936450Z" level=debug msg="RequestPool(LocalDefault, 172.17.0.0/16, , map[], false)"
time="2016-12-02T17:40:31.817963419Z" level=debug msg="RequestAddress(LocalDefault/172.17.0.0/16, 172.17.0.1, map[RequestAddressType:com.docker.network.gateway])"
time="2016-12-02T17:40:31.818944639Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.819794283Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.820419933Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.821095012Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -D DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.821706584Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.822306310Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.822917846Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.823555089Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.824172614Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.824865567Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.825579043Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.826190711Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.826793517Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.827856201Z" level=debug msg="releasing IPv4 pools from network bridge (769a4727f21c2c93bc5ab0d73b2221bf589b61d72286703044df82dff4404bdb)"
time="2016-12-02T17:40:31.827873323Z" level=debug msg="ReleaseAddress(LocalDefault/172.17.0.0/16, 172.17.0.1)"
time="2016-12-02T17:40:31.827889444Z" level=debug msg="ReleasePool(LocalDefault/172.17.0.0/16)"
time="2016-12-02T17:40:31.829420991Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
time="2016-12-02T17:40:31.829449564Z" level=debug msg="Allocating IPv4 pools for network bridge (df4bd823534e55e46fab6700e94d5e3728ae40f7cdf6e4ce9fb523f4ef6a84d6)"
time="2016-12-02T17:40:31.829461383Z" level=debug msg="RequestPool(LocalDefault, 172.17.0.0/16, , map[], false)"
time="2016-12-02T17:40:31.829480436Z" level=debug msg="RequestAddress(LocalDefault/172.17.0.0/16, 172.17.0.1, map[RequestAddressType:com.docker.network.gateway])"
time="2016-12-02T17:40:31.829604904Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.830263211Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE]"
time="2016-12-02T17:40:31.830897081Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.831580401Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -I DOCKER -i docker0 -j RETURN]"
time="2016-12-02T17:40:31.832186563Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -i docker0 -o docker0 -j DROP]"
time="2016-12-02T17:40:31.832832277Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.833438658Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -i docker0 -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.834113557Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.834778734Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -i docker0 ! -o docker0 -j ACCEPT]"
time="2016-12-02T17:40:31.835383516Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.836099155Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]"
time="2016-12-02T17:40:31.836963236Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.837678997Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]"
time="2016-12-02T17:40:31.838404700Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8]"
time="2016-12-02T17:40:31.839196159Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t nat -C OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8]"
time="2016-12-02T17:40:31.839951001Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.840701682Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -o docker0 -j DOCKER]"
time="2016-12-02T17:40:31.841384288Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C FORWARD -j DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.842035782Z" level=debug msg="/usr/local/sbin/iptables, [--wait -D FORWARD -j DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.842667948Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I FORWARD -j DOCKER-ISOLATION]"
time="2016-12-02T17:40:31.844980088Z" level=info msg="Daemon has completed initialization"
time="2016-12-02T17:40:31.845016496Z" level=info msg="Docker daemon" commit=6b644ec graphdriver=aufs version=1.12.3
time="2016-12-02T17:40:31.845082732Z" level=debug msg="Registering routers"
time="2016-12-02T17:40:31.845090452Z" level=debug msg="Registering HEAD, /containers/{name:.*}/archive"
time="2016-12-02T17:40:31.845196210Z" level=debug msg="Registering GET, /containers/json"
time="2016-12-02T17:40:31.845249996Z" level=debug msg="Registering GET, /containers/{name:.*}/export"
time="2016-12-02T17:40:31.845332988Z" level=debug msg="Registering GET, /containers/{name:.*}/changes"
time="2016-12-02T17:40:31.845405539Z" level=debug msg="Registering GET, /containers/{name:.*}/json"
time="2016-12-02T17:40:31.845461108Z" level=debug msg="Registering GET, /containers/{name:.*}/top"
time="2016-12-02T17:40:31.845590507Z" level=debug msg="Registering GET, /containers/{name:.*}/logs"
time="2016-12-02T17:40:31.845654350Z" level=debug msg="Registering GET, /containers/{name:.*}/stats"
time="2016-12-02T17:40:31.845718392Z" level=debug msg="Registering GET, /containers/{name:.*}/attach/ws"
time="2016-12-02T17:40:31.845782209Z" level=debug msg="Registering GET, /exec/{id:.*}/json"
time="2016-12-02T17:40:31.845841816Z" level=debug msg="Registering GET, /containers/{name:.*}/archive"
time="2016-12-02T17:40:31.845906266Z" level=debug msg="Registering POST, /containers/create"
time="2016-12-02T17:40:31.845956564Z" level=debug msg="Registering POST, /containers/{name:.*}/kill"
time="2016-12-02T17:40:31.846072344Z" level=debug msg="Registering POST, /containers/{name:.*}/pause"
time="2016-12-02T17:40:31.846142240Z" level=debug msg="Registering POST, /containers/{name:.*}/unpause"
time="2016-12-02T17:40:31.846203895Z" level=debug msg="Registering POST, /containers/{name:.*}/restart"
time="2016-12-02T17:40:31.846274390Z" level=debug msg="Registering POST, /containers/{name:.*}/start"
time="2016-12-02T17:40:31.846335739Z" level=debug msg="Registering POST, /containers/{name:.*}/stop"
time="2016-12-02T17:40:31.846397909Z" level=debug msg="Registering POST, /containers/{name:.*}/wait"
time="2016-12-02T17:40:31.846455319Z" level=debug msg="Registering POST, /containers/{name:.*}/resize"
time="2016-12-02T17:40:31.846581902Z" level=debug msg="Registering POST, /containers/{name:.*}/attach"
time="2016-12-02T17:40:31.846648077Z" level=debug msg="Registering POST, /containers/{name:.*}/copy"
time="2016-12-02T17:40:31.846703368Z" level=debug msg="Registering POST, /containers/{name:.*}/exec"
time="2016-12-02T17:40:31.846757547Z" level=debug msg="Registering POST, /exec/{name:.*}/start"
time="2016-12-02T17:40:31.855298945Z" level=debug msg="Registering POST, /exec/{name:.*}/resize"
time="2016-12-02T17:40:31.855476145Z" level=debug msg="Registering POST, /containers/{name:.*}/rename"
time="2016-12-02T17:40:31.855680517Z" level=debug msg="Registering POST, /containers/{name:.*}/update"
time="2016-12-02T17:40:31.855823007Z" level=debug msg="Registering PUT, /containers/{name:.*}/archive"
time="2016-12-02T17:40:31.855965910Z" level=debug msg="Registering DELETE, /containers/{name:.*}"
time="2016-12-02T17:40:31.856156286Z" level=debug msg="Registering GET, /images/json"
time="2016-12-02T17:40:31.856248747Z" level=debug msg="Registering GET, /images/search"
time="2016-12-02T17:40:31.856338764Z" level=debug msg="Registering GET, /images/get"
time="2016-12-02T17:40:31.856428471Z" level=debug msg="Registering GET, /images/{name:.*}/get"
time="2016-12-02T17:40:31.856609363Z" level=debug msg="Registering GET, /images/{name:.*}/history"
time="2016-12-02T17:40:31.856737561Z" level=debug msg="Registering GET, /images/{name:.*}/json"
time="2016-12-02T17:40:31.856858547Z" level=debug msg="Registering POST, /commit"
time="2016-12-02T17:40:31.856932825Z" level=debug msg="Registering POST, /images/load"
time="2016-12-02T17:40:31.857067111Z" level=debug msg="Registering POST, /images/create"
time="2016-12-02T17:40:31.857171220Z" level=debug msg="Registering POST, /images/{name:.*}/push"
time="2016-12-02T17:40:31.857289494Z" level=debug msg="Registering POST, /images/{name:.*}/tag"
time="2016-12-02T17:40:31.857408848Z" level=debug msg="Registering DELETE, /images/{name:.*}"
time="2016-12-02T17:40:31.857600539Z" level=debug msg="Registering OPTIONS, /{anyroute:.*}"
time="2016-12-02T17:40:31.857700202Z" level=debug msg="Registering GET, /_ping"
time="2016-12-02T17:40:31.857773927Z" level=debug msg="Registering GET, /events"
time="2016-12-02T17:40:31.857843765Z" level=debug msg="Registering GET, /info"
time="2016-12-02T17:40:31.857908064Z" level=debug msg="Registering GET, /version"
time="2016-12-02T17:40:31.858001946Z" level=debug msg="Registering POST, /auth"
time="2016-12-02T17:40:31.858134328Z" level=debug msg="Registering GET, /volumes"
time="2016-12-02T17:40:31.858215934Z" level=debug msg="Registering GET, /volumes/{name:.*}"
time="2016-12-02T17:40:31.858338159Z" level=debug msg="Registering POST, /volumes/create"
time="2016-12-02T17:40:31.858435864Z" level=debug msg="Registering DELETE, /volumes/{name:.*}"
time="2016-12-02T17:40:31.858623798Z" level=debug msg="Registering POST, /build"
time="2016-12-02T17:40:31.858699227Z" level=debug msg="Registering POST, /swarm/init"
time="2016-12-02T17:40:31.858782830Z" level=debug msg="Registering POST, /swarm/join"
time="2016-12-02T17:40:31.858882884Z" level=debug msg="Registering POST, /swarm/leave"
time="2016-12-02T17:40:31.858975348Z" level=debug msg="Registering GET, /swarm"
time="2016-12-02T17:40:31.859090616Z" level=debug msg="Registering POST, /swarm/update"
time="2016-12-02T17:40:31.859185927Z" level=debug msg="Registering GET, /services"
time="2016-12-02T17:40:31.859271129Z" level=debug msg="Registering GET, /services/{id:.*}"
time="2016-12-02T17:40:31.859392667Z" level=debug msg="Registering POST, /services/create"
time="2016-12-02T17:40:31.859498568Z" level=debug msg="Registering POST, /services/{id:.*}/update"
time="2016-12-02T17:40:31.860487935Z" level=debug msg="Registering DELETE, /services/{id:.*}"
time="2016-12-02T17:40:31.860600622Z" level=debug msg="Registering GET, /nodes"
time="2016-12-02T17:40:31.860638114Z" level=debug msg="Registering GET, /nodes/{id:.*}"
time="2016-12-02T17:40:31.860689203Z" level=debug msg="Registering DELETE, /nodes/{id:.*}"
time="2016-12-02T17:40:31.860739964Z" level=debug msg="Registering POST, /nodes/{id:.*}/update"
time="2016-12-02T17:40:31.860791527Z" level=debug msg="Registering GET, /tasks"
time="2016-12-02T17:40:31.860823214Z" level=debug msg="Registering GET, /tasks/{id:.*}"
time="2016-12-02T17:40:31.860872242Z" level=debug msg="Registering GET, /networks"
time="2016-12-02T17:40:31.860907071Z" level=debug msg="Registering GET, /networks/{id:.*}"
time="2016-12-02T17:40:31.860959816Z" level=debug msg="Registering POST, /networks/create"
time="2016-12-02T17:40:31.861000434Z" level=debug msg="Registering POST, /networks/{id:.*}/connect"
time="2016-12-02T17:40:31.861149382Z" level=debug msg="Registering POST, /networks/{id:.*}/disconnect"
time="2016-12-02T17:40:31.861212449Z" level=debug msg="Registering DELETE, /networks/{id:.*}"
time="2016-12-02T17:40:31.861470361Z" level=info msg="API listen on [::]:2376"
time="2016-12-02T17:40:31.861560675Z" level=info msg="API listen on /var/run/docker.sock"
time="2016-12-02T17:40:33.751508859Z" level=debug msg="libcontainerd: containerd connection state change: READY"
time="2016-12-02T17:40:47.157118325Z" level=debug msg="Calling POST /v1.24/containers/create"
time="2016-12-02T17:40:47.157318825Z" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":false,\"AttachStdout\":true,\"Cmd\":null,\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":[],\"HostConfig\":{\"AutoRemove\":false,\"Bind
time="2016-12-02T17:40:47.157354807Z" level=debug msg="Client and server don't have the same version (client: 1.12.2, server: 1.12.3)"
time="2016-12-02T17:40:47.158018832Z" level=error msg="Handler for POST /v1.24/containers/create returned error: No such image: hello-world:latest"
time="2016-12-02T17:40:47.168659719Z" level=debug msg="Calling GET /v1.24/info"
time="2016-12-02T17:40:47.168702458Z" level=debug msg="Client and server don't have the same version (client: 1.12.2, server: 1.12.3)"
time="2016-12-02T17:40:47.175273487Z" level=debug msg="Calling POST /v1.24/images/create?fromImage=hello-world&tag=latest"
time="2016-12-02T17:40:47.175301389Z" level=debug msg="Client and server don't have the same version (client: 1.12.2, server: 1.12.3)"
time="2016-12-02T17:40:47.175394394Z" level=debug msg="Trying to pull hello-world from https://registry-1.docker.io v2"
time="2016-12-02T17:40:47.267928949Z" level=warning msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority"
time="2016-12-02T17:40:47.267962791Z" level=error msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority"
time="2016-12-02T17:40:47.267980757Z" level=debug msg="Trying to pull hello-world from https://index.docker.io v1"
time="2016-12-02T17:40:47.268000661Z" level=debug msg="hostDir: /etc/docker/certs.d/docker.io"
time="2016-12-02T17:40:47.268523687Z" level=debug msg="[registry] Calling GET https://index.docker.io/v1/repositories/library/hello-world/images"
time="2016-12-02T17:40:47.343322233Z" level=error msg="Not continuing with pull after error: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority"

Ok here is what I don't understand, you can see in the beginning of the log it is using 0.0.0.0:2376 for the docker VM. When I run docker-machine ls I see this:

$ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER    ERRORS
default   *        virtualbox   Running   tcp://192.168.99.100:2376           v1.12.3

According boot2docker you are suppose to use hostname however it looks like two different IP addresses are being used. What should be used?

nathanleclaire commented 7 years ago

Are you using any sort of proxy / VPN?

GHrw62 commented 7 years ago

No proxy/VPN being used.

GHrw62 commented 7 years ago

Turns out the issue was caused by my company's proxy system called Zscalar which interjects its own certificates. Putting those certificates did not work. Learn there is SSL bypass mechanism that exempts URLs from this activity. For Docker to work properly there is two URLs that it uses that must be bypassed by Zscalar. Those are .docker.io and .cloudfront.net.

FCA69 commented 7 years ago

I've had the same issue (x509: certificate signed by unknown authority). I: o added my corp proxy's certificate at OS level => this enabled curl to contact docker's repos. curl -v --request POST "https://hub.docker.com/v1.27/auth/" --data-binary '{\"password\":\"\",\"serveraddress\":\"https://index.docker.io/v1/\",\"username\":\"\" --compressed o added the /etc/docker/certs.d/docker.io/... files => this made "docker search ..." work o added this entry in my /etc/docker/daemon.json file: "tlscert": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" => this finally made "docker run hello-world" work!

uxlab9 commented 7 years ago

@FCA69 Inquiring about your post from May 19, and I may have the same issue you did. Do you think you can look at my error and see if it resembles yours, and if it would fix my error.

Installed Cyphon onto a desktop inside of enterprise domain. Followed all the directions listed at Cyphon.io but when I get to Development Environment section of instructions: $ cd /opt/cyphon/cyphondock $ sudo docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

I am prompted for [sudo] password for UserName: After typing in my correct password. The return function is: "Pulling postgres (mdillon/postgis:9.6)... ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority"

I have copied and put my Domain Cert in /home/documents folder and even copied it to the /home/certs folder. I then ran: $ sudo cp /home/UserName/certs/xx-xx-xx.crt /usr/share/ca-certificates/extra/xx-xx-xx.crt to install my domain cert.

But I am still getting: ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority. As far as I know our domain admins have signed the certificate or have had it signed.

Cyphon/docker installed on Ubuntu 16.04

Thanks

FCA69 commented 7 years ago

Hello, Are you using a company proxy ? If yes, install your company’s certificate. In my case I’ve appended the following file with this certificate : /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem … and modified docker’s configuration, in order to use my system’s certificates repository : { "insecure-registries":["….."], "debug":true, "tlscert": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" } Best regards.

De : uxlab9 [mailto:notifications@github.com] Envoyé : mercredi 5 juillet 2017 17:02 À : docker/toolbox Cc : Frédéric Castelain; Mention Objet : Re: [docker/toolbox] Docker run Hello-World error x509: certificate signed by unknown authority (#603)

@FCA69https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_fca69&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vRkNHtZdvUKxVm7cHt-tsOyEcNR1OKHykVh7p-KxeLQ&s=2YbalwY0VN4dlR-HvGZS3L_DCGsAFZ-x0kqfS6DoYro&e= Inquiring about your post from May 19, and I may have the same issue you did. Do you think you can look at my error and see if it resembles yours, and if it would fix my error.

Installed Cyphon onto a desktop inside of enterprise domain. Followed all the directions listed at Cyphon.io but when I get to Development Environment section of instructions: $ cd /opt/cyphon/cyphondock $ sudo docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

I am prompted for [sudo] password for UserName: After typing in my correct password. The return function is: "Pulling postgres (mdillon/postgis:9.6)... ERROR: Get https://registry-1.docker.io/v2/https://urldefense.proofpoint.com/v2/url?u=https-3A__registry-2D1.docker.io_v2_&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vRkNHtZdvUKxVm7cHt-tsOyEcNR1OKHykVh7p-KxeLQ&s=oWCYKDColSta5dO5UcjK8XH8qsfT3PncKuWzfnjTOeo&e=: x509: certificate signed by unknown authority"

I have copied and put my Domain Cert in /home/documents folder and even copied it to the /home/certs folder. I then ran: $ sudo cp /home/UserName/certs/xx-xx-xx.crt /usr/share/ca-certificates/extra/xx-xx-xx.crt to install my domain cert.

But I am still getting: ERROR: Get https://registry-1.docker.io/v2/https://urldefense.proofpoint.com/v2/url?u=https-3A__registry-2D1.docker.io_v2_&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vRkNHtZdvUKxVm7cHt-tsOyEcNR1OKHykVh7p-KxeLQ&s=oWCYKDColSta5dO5UcjK8XH8qsfT3PncKuWzfnjTOeo&e=: x509: certificate signed by unknown authority. As far as I know our domain admins have signed the certificate or have had it signed.

Cyphon/docker installed on Ubuntu 16.04

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_docker_toolbox_issues_603-23issuecomment-2D313129781&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vRkNHtZdvUKxVm7cHt-tsOyEcNR1OKHykVh7p-KxeLQ&s=0LBwDYW4YwVnrjAuizqG4kAkSnYTykOaYUQvtICzRlc&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANgcLMIHVab8EVMNiV2uuw-2Dmab1tyztJks5sK6VLgaJpZM4LBn2F&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vRkNHtZdvUKxVm7cHt-tsOyEcNR1OKHykVh7p-KxeLQ&s=B444nzRiBqFTU-Dk2tLJtDQowbi5bVQ9k4Izh8_ujrM&e=.

NOTICE: This e-mail (including any attachments) may contain information that is private, confidential or legally privileged information or material and is intended solely for the use of the addressee(s). If you receive this e-mail in error, please delete it from your system without copying it and immediately notify the sender(s) by reply e-mail. Any unauthorized use or disclosure of this message is strictly prohibited. STEF does not guarantee the integrity of this transmission and may therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.

AVIS : Ce message (y compris toutes pièces jointes) peut contenir des informations privées, confidentielles et est pour l'usage du(es) seul(s) destinataire(s). Si vous avez reçu ce message par erreur, merci d'en avertir l'expéditeur par retour d'email immédiatement et de procéder à la destruction de l'ensemble des éléments reçus, dont vous ne devez garder aucune copie. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le(les) destinataire(s) désigné(s) est interdite. STEF ne garantit pas l'intégrité de cette transmission et ne saurait être tenu responsable du message, de son contenu, de toute modification ou falsification, d’une interception ou de dégâts à votre système.

uxlab9 commented 7 years ago

I believe our company is using a proxy. I ran this from Chrome: chrome://net-internals/#proxy and it returns a massive amounts of information. I copied and put my Domain Cert in /home/MyUserName/documents folder and even copied it to the /home/MyUserName/certs folder. I then ran:

$ sudo cp /home/UserName/certs/xx-xx-xx.crt /usr/share/ca-certificates/extra/xx-xx-xx.crt to install my domain cert.

But it stills returns ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority.

I am still very new to Ubuntu, running commands and only installed Docker/Cypon twice. Once was using a mobile hotspot so I never ran into this errors. As i am trying to learn, would you look over my commands and tell me if they are correct. Thanks

FCA69 commented 7 years ago

Hello, you should try and check if you can access docker’s repo with a “curl” command; you can also try “docker pull” and “docker search”, because these commands use different certficates’ locations. If curl succeeds, you should try and use the same certificates’ location within docker. If not, there must be an issue with your certificates. And turning debug mode on might help too. Best regards.

De : uxlab9 [mailto:notifications@github.com] Envoyé : mercredi 5 juillet 2017 21:55 À : docker/toolbox Cc : Frédéric Castelain; Mention Objet : Re: [docker/toolbox] Docker run Hello-World error x509: certificate signed by unknown authority (#603)

I believe our company is using a proxy. I ran this from Chrome: chrome://net-internals/#proxy and it returns a massive amounts of information. I copied and put my Domain Cert in /home/MyUserName/documents folder and even copied it to the /home/MyUserName/certs folder. I then ran:

$ sudo cp /home/UserName/certs/xx-xx-xx.crt /usr/share/ca-certificates/extra/xx-xx-xx.crt to install my domain cert.

But it stills returns ERROR: Get https://registry-1.docker.io/v2/https://urldefense.proofpoint.com/v2/url?u=https-3A__registry-2D1.docker.io_v2_&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vjnPBKIh1feUK6vrZ2IAlbA4C38ONRTWHFdQCD066zM&s=rYcusqsd6fJnl-1Lp73F2sD00kcO3HMIO7d_kpGD0f8&e=: x509: certificate signed by unknown authority.

I am still very new to Ubuntu, running commands and only installed Docker/Cypon twice. Once was using a mobile hotspot so I never ran into this errors. As i am trying to learn, would you look over my commands and tell me if they are correct. Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_docker_toolbox_issues_603-23issuecomment-2D313209006&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vjnPBKIh1feUK6vrZ2IAlbA4C38ONRTWHFdQCD066zM&s=aCLzm3gqhez3BfNpHde3xxG1f6eYBGbFkE-jg12fJxA&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANgcLDc5agMbhK3W0AVc4XuUgUJngcr8ks5sK-2DoqgaJpZM4LBn2F&d=DwMFaQ&c=B_xNwyI-4ygMhoSqrYJjrw&r=-do3pKbZyiuoSAiJ0qVNasy_bR0zbcHh8SgeK6e0JsU&m=vjnPBKIh1feUK6vrZ2IAlbA4C38ONRTWHFdQCD066zM&s=ZDgtxZ3Q7ogea4bz1LWyWtF7mfekxNPYafMbVDexmes&e=.

NOTICE: This e-mail (including any attachments) may contain information that is private, confidential or legally privileged information or material and is intended solely for the use of the addressee(s). If you receive this e-mail in error, please delete it from your system without copying it and immediately notify the sender(s) by reply e-mail. Any unauthorized use or disclosure of this message is strictly prohibited. STEF does not guarantee the integrity of this transmission and may therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.

AVIS : Ce message (y compris toutes pièces jointes) peut contenir des informations privées, confidentielles et est pour l'usage du(es) seul(s) destinataire(s). Si vous avez reçu ce message par erreur, merci d'en avertir l'expéditeur par retour d'email immédiatement et de procéder à la destruction de l'ensemble des éléments reçus, dont vous ne devez garder aucune copie. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le(les) destinataire(s) désigné(s) est interdite. STEF ne garantit pas l'intégrité de cette transmission et ne saurait être tenu responsable du message, de son contenu, de toute modification ou falsification, d’une interception ou de dégâts à votre système.

uxlab9 commented 7 years ago

After physical copying my domains certificate and my domains proxy certificate to: /home/MyUserName/certs folder. I ran: $ sudo cp /home/UserName/certs/xx-xx-xx.crt /usr/share/ca-certificates/extra/xx-xx-xx.crt to install my domain.crt and my domains proxy.pem It stills returns ERROR: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority.

So I ran: curl localhost:5000/v2/_catalog Return Error: Failed to connect to localhost port 5000

Then I confirm I had curl installed on Ubuntu. $ sudo apt-get install libcurl3

I even attempted to run $ /etc/pki/ca-trust/extracted/pem/xx_xxx.pem - That returned command not found.

I then ran just $ docker which informed me that "Trust certs signed only by this CA (default "home/MyUserName/.docker/ca.pem)

Thanks

jeanfredericplante commented 7 years ago

I had that exact same message and it was solved by properly configuring my docker daemon with my company's proxy. See Control and Configure Docker with systemd.

tcbabu commented 6 years ago

I had similar problem and I have installed docker form binaries on my LFS linux which I built. It was due to missing cacert.pem in /etc/ssl/certs/ . I got it from curl official website copied it to /etc/ssl/cert. My curl was built to look for there for 'ca certs' by default.

cchang62 commented 6 years ago

I have the same issue while pulling images from public hubs of docker. But my environment is more complicated. I run docker machine in VM-Ubuntu16.04 and the VM's host is windows 10, which is behind a company proxy. It wasn't always failed to pull images. How can I avoid this error? Or can I use a self-signed certificate instead?

saumya-goyal commented 5 years ago

@FCA69 can you please explain some more about how did you add your corporation proxy's certificate at OS level?

jrtitus commented 5 years ago

@saumya-goyal Personally, I followed the steps in the accepted answer here and got it working:

cd /usr/local/share/ca-certificates/
sudo mkdir corp
sudo cp ~/{corporate-cert}.crt corp/
sudo update-ca-certificates

Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

I found that I didn't need to do the other two steps listed in FCA69's comment; I only needed to restart the docker service (sudo service docker restart) after installing the corporate proxy's certificate. docker login, docker search, and docker run hello-world are all successful.

I should mention I'm running this on Ubuntu 18.04.2

sumeetpareek commented 5 years ago

We had the same issue, and my team was able to solve it as below --

Where I work the network security team had put Zscalar in place, after which no network traffic from browsers, or command line, or docker worked.

  1. The first thing we had to do was import CERTS provided by the network team to our macbook's Keychain Access app

image

  1. Then we had to mark those CERTS within Keychain Access to be always trusted.

image

  1. Then we had to restart docker. Which you can do from the UI, or from the command line by osascript -e 'quit app "Docker"' and then after a while open -a Docker -- https://danielkorn.io/post/restart-docker-mac/
lispercat commented 4 years ago

@saumya-goyal Personally, I followed the steps in the accepted answer here and got it working:

cd /usr/local/share/ca-certificates/
sudo mkdir corp
sudo cp ~/{corporate-cert}.crt corp/
sudo update-ca-certificates

Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

I found that I didn't need to do the other two steps listed in FCA69's comment; I only needed to restart the docker service (sudo service docker restart) after installing the corporate proxy's certificate. docker login, docker search, and docker run hello-world are all successful.

I should mention I'm running this on Ubuntu 18.04.2

Thanks, man! I was banging my head against the wall, since I installed all the certs. All I missed was the docker restart :) Big fat like from me!