Carry #18787: Update Instructions for Docker Remote API access
| ... | ... |
@@ -64,12 +64,20 @@ without protocol. Throughout this structure, double quotes are required. |
| 64 | 64 |
|
| 65 | 65 |
## Using Docker Machine with the API |
| 66 | 66 |
|
| 67 |
-If you are using `docker-machine`, the Docker daemon is on a virtual host that uses an encrypted TCP socket. This means, for Docker Machine users, you need to add extra parameters to `curl` or `wget` when making test API requests, for example: |
|
| 67 |
+If you are using `docker-machine`, the Docker daemon is on a host that |
|
| 68 |
+uses an encrypted TCP socket using TLS. This means, for Docker Machine users, |
|
| 69 |
+you need to add extra parameters to `curl` or `wget` when making test |
|
| 70 |
+API requests, for example: |
|
| 68 | 71 |
|
| 69 | 72 |
``` |
| 70 |
-curl --insecure --cert ~/.docker/cert.pem --key ~/.docker/key.pem https://YOUR_VM_IP:2376/images/json |
|
| 71 |
- |
|
| 72 |
-wget --no-check-certificate --certificate=$DOCKER_CERT_PATH/cert.pem --private-key=$DOCKER_CERT_PATH/key.pem https://your_vm_ip:2376/images/json -O - -q |
|
| 73 |
+curl --insecure \ |
|
| 74 |
+ --cert $DOCKER_CERT_PATH/cert.pem \ |
|
| 75 |
+ --key $DOCKER_CERT_PATH/key.pem \ |
|
| 76 |
+ https://YOUR_VM_IP:2376/images/json |
|
| 77 |
+ |
|
| 78 |
+wget --no-check-certificate --certificate=$DOCKER_CERT_PATH/cert.pem \ |
|
| 79 |
+ --private-key=$DOCKER_CERT_PATH/key.pem \ |
|
| 80 |
+ https://YOUR_VM_IP:2376/images/json -O - -q |
|
| 73 | 81 |
``` |
| 74 | 82 |
|
| 75 | 83 |
## Docker Events |