-```bash
+```console
$ curl --unix-socket /var/run/docker.sock http://localhost/v{{ site.latest_engine_api_version}}/containers/json
[{
"Id":"ae63e8b89a26f01f6b4b2c9a7817c31a1b6196acf560f66586fbc8809ffcd772",
@@ -442,7 +442,7 @@ print(container.logs())
-```bash
+```console
$ curl --unix-socket /var/run/docker.sock "http://localhost/v{{ site.latest_engine_api_version}}/containers/ca5f55cdb/logs?stdout=1"
Reticulating spline 1...
Reticulating spline 2...
@@ -511,7 +511,7 @@ for image in client.images.list():
-```bash
+```console
$ curl --unix-socket /var/run/docker.sock http://localhost/v{{ site.latest_engine_api_version}}/images/json
[{
"Id":"sha256:31d9a31e1dd803470c5a151b8919ef1988ac3efd44281ac59d43ad623f275dcd",
@@ -581,7 +581,7 @@ print(image.id)
-```bash
+```console
$ curl --unix-socket /var/run/docker.sock \
-X POST "http://localhost/v{{ site.latest_engine_api_version}}/images/create?fromImage=alpine"
{"status":"Pulling from library/alpine","id":"3.1"}
@@ -679,7 +679,7 @@ This example leaves the credentials in your shell's history, so consider
this a naive implementation. The credentials are passed as a Base-64-encoded
JSON structure.
-```bash
+```console
$ JSON=$(echo '{"username": "string", "password": "string", "serveraddress": "string"}' | base64)
$ curl --unix-socket /var/run/docker.sock \
@@ -775,7 +775,7 @@ print(image.id)
-```bash
+```console
$ docker run -d alpine touch /helloworld
0888269a9d584f0fa8fc96b3c0d8d57969ceea3a64acf47cd34eebb4744dbc52
$ curl --unix-socket /var/run/docker.sock\
diff --git a/engine/api/sdk/index.md b/engine/api/sdk/index.md
index 08d4985274..d8e0ea9926 100644
--- a/engine/api/sdk/index.md
+++ b/engine/api/sdk/index.md
@@ -22,8 +22,8 @@ installed and coexist together.
### Go SDK
-```bash
-go get github.com/docker/docker/client
+```console
+$ go get github.com/docker/docker/client
```
The client requires a recent version of Go. Run `go version` and ensure that you
@@ -149,7 +149,7 @@ print client.containers.run("alpine", ["echo", "hello", "world"])
-```bash
+```console
$ curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json" \
-d '{"Image": "alpine", "Cmd": ["echo", "hello world"]}' \
-X POST http://localhost/v{{ site.latest_engine_api_version}}/containers/create