Skip to content

Instantly share code, notes, and snippets.

@MatthewRDodds
Last active August 29, 2015 14:24
Show Gist options
  • Save MatthewRDodds/2f99e1422a2ef7709eb4 to your computer and use it in GitHub Desktop.
Save MatthewRDodds/2f99e1422a2ef7709eb4 to your computer and use it in GitHub Desktop.
Temporary workarounds for current Docker issues

Temporary workarounds for current Docker issues

x509: certificate is valid

boot2docker ssh
sudo curl -o /var/lib/boot2docker/profile https://gist.githubusercontent.com/MatthewRDodds/7d4423dc579d5306fd17/raw/3d09c77aae38b4f2809d504784965f5a16f2de4c/gistfile1.txt
sudo halt
boot2docker up

requests.exceptions.Timeout: HTTPSConnectionPool(host='192.168.59.103', port=2376): Read timed out.

Increase Docker Client timeout with environment variable:

export DOCKER_CLIENT_TIMEOUT=1000

An error occurred trying to connect: Post https://192.168.59.104:2376/v1.19/containers/create?name=connexio_devbox_gems: dial tcp 192.168.59.104:2376: i/o timeout

The environment setting for boot2docker's IP is messed up

Find the legit setting:

boot2docker ip

And update the DOCKER_HOST variable to that value.

Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

I think the only thing to do with this is to start over :(

boot2docker delete
boot2docker init
boot2docker up
$(boot2docker shellinit)

lookup index.docker.io on 10.0.2.3:53: too many redirects

osx$ boot2docker up
osx$ boot2docker ssh
docker@boot2docker$ sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf
docker@boot2docker$ sudo /etc/init.d/docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment