Skip to content

Latest commit

 

History

History
95 lines (61 loc) · 2.94 KB

docker-troubleshooting.adoc

File metadata and controls

95 lines (61 loc) · 2.94 KB

Troubleshooting

Can’t resolve classroom.example.com

  1. Make sure to add the instructor IP as DNS server to your system

  2. On Windows temporarily disable IPv6 (we’re only supporting IPv4)

Network Timed Out

Depending upon the network speed and restrictions, you may not be able to download Docker images from Docker Hub. The error message may look like:

$ docker pull arungupta/wildfly-mysql-javaee7
Using default tag: latest
Pulling repository docker.io/arungupta/wildfly-mysql-javaee7
Network timed out while trying to connect to https://index.docker.io/v1/repositories/arungupta/wildfly-mysql-javaee7/images. You may want to check your internet connection or if you are behind a proxy.

This section provide a couple of alternatives to solve this.

Restart Docker Machine

It seems like Docker Machine gets into a strange state and restarting it fixes that.

docker-machine restart <MACHINE_NAME>
eval $(docker-machine env <MACHINE_NAME>)

Loading Images Offline

Images can be downloaded from a previously saved .tar file. All images required for this workshop can be downloaded from:

Load the tar file:

docker load -i <path to image tar file>

For example:

docker load -i arungupta-javaee7-hol.tar

Now docker images should show the image.

Cannot create Docker Machine on Windows

Double check, that you have the correct version of VirtualBox installed. Clear all host-adapter interfaces in Virtualbox before creating a new machine. Make sure to have git for windows in your path.

Are you not able to create Docker Machine on Windows?

Try starting a cmd with Administrator privileges and then give the command again.

No route to host

Accessing the WildFly and MySQL sample in Kubernetes gives 404 when you give the command curl http://10.246.1.23:8080/employees/resources/employees/.

This may be resolved by stopping the node and restarting the cluster again:

vagrant halt minion-1
./cluster/kube-up.sh

These commands need to be given in the ‘kubernetes’ directory.

Docker machine creation fails with an error about dial tcp: i/o timeout

If you get the following error when creating a docker machine

Error creating machine: Error in driver during machine creation: Get https://api.github.com/repos/boot2docker/boot2docker/releases: dial tcp: i/o timeout

Then you need to go to the boot2docker releases page on

And download the latest .iso

After that you can move that iso to the docker cache directory. This is located in ~/.docker/machine/cache on Mac & Linux and /Users/yourUserName/.docker/machine/cache on Windows.

Issue: docker/machine#2186 is raised so that the docker-machine team can hopefully find a way around this.