Skip to content

Commit 4b1f387

Browse files
committed
Add minishift troubleshooting notes.
1 parent 29dbbc2 commit 4b1f387

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

extra/minishift/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ The following steps will build the sample application and create a Docker image
136136

137137
We will use Minishift's internal Docker registry to host our image.
138138

139+
1. Configure your environment for Minishift:
140+
```console
141+
$ eval $(minishift oc-env)
142+
$ eval $(minishift docker-env)
143+
```
139144
1. Ensure your `oc` client is logged into Minishift as `developer`. To do this, open the console and click on the top right corner to obtain the `oc login` command, which contains a token. For example:
140145
```console
141146
$ oc login https://192.198.78.10:8443 --token=k8WEA-ut2qBdpUN35mxYxNxkhmM6953GohIA7_7L1RE
@@ -299,4 +304,24 @@ The `vote` application is using various MicroProfile specifications. The `/open
299304
1. Click on `Execute` and inspect that the `Respond body` contains the same name that you created in step 2. You successfully triggered a fetch from our microservice into the CouchDB database.
300305
1. Feel free to explore the other APIs and play around with the microservice!
301306

302-
Congratulations! You finished the lab! You got to use a few powerful tools to deploy a microservice into minishift. Although this lab is finished but the journey to minishift/openshift should not end here!
307+
Congratulations! You finished the lab! You got to use a few powerful tools to deploy a microservice into minishift. Although this lab is finished but the journey to minishift/openshift should not end here!
308+
309+
## Troubleshooting
310+
Here are a few common issues that people run into. If you experience a problem that is not documented, feel free to open an issue so that it can be documented.
311+
312+
### oc: command not found
313+
You need to configure your environment for Minishift. Run the following command
314+
```console
315+
$ eval $(minishift oc-env)
316+
```
317+
318+
### I am not able to log in to the Docker registry.
319+
If you are not able to login to the Docker registry and an error similar to the following:
320+
```
321+
Error response from daemon: Get https://172.30.1.1:5000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
322+
```
323+
324+
You will need to configure your Docker client for Minishift. Run the following command:
325+
```console
326+
$ eval $(minishift docker-env)
327+
```

0 commit comments

Comments
 (0)