Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d7d8312

Browse files
Merge pull request #745 from ulyssessouza/fix-readme-shell-markdown
Fix shell code formatting
2 parents 02a383c + cf3d3ee commit d7d8312

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ services:
9999
100100
Next, create an App definition using the `docker app init` command:
101101

102-
```console
102+
```shell
103103
$ docker app init --compose-file docker-compose.yml hello
104104
Created "hello.dockerapp"
105105
$ tree
@@ -154,7 +154,7 @@ text: hello development
154154

155155
Next, build an App image:
156156

157-
```console
157+
```shell
158158
$ docker app build . -f hello.dockerapp -t myrepo/hello:0.1.0
159159
[+] Building 0.7s (6/6) FINISHED
160160
(...) (Build output)
@@ -167,21 +167,21 @@ At this point, an App image with the `myrepo/hello:1.0.1` tag has been built fro
167167

168168
To share your App image, push it to a container registry.
169169

170-
```console
170+
```shell
171171
$ docker app push myrepo/hello:0.1.0
172172
```
173173

174174
Now run your App:
175175

176-
```console
176+
```shell
177177
$ docker app run myrepo/hello:0.1.0
178178
```
179179

180180
You can specify the Docker endpoint where an application is installed using a context. By default, your App will run on the currently active context. You can select another context with the `docker context use` command, and the `docker app run` command will thereafter run your app on this particular context.
181181

182182
Whenever you define such a context, the installer image will run in the default context (i.e., on local host). You can then use the `--installer-context` to target another context to run the installer image.
183183

184-
```console
184+
```shell
185185
$ docker context create remote --description "remote cluster" --docker host=tcp://<remote-ip>:<remote-port>
186186
Successfully created context "remote"
187187
@@ -208,14 +208,14 @@ Docker App is a *command line* plugin (not be confused with *docker engine plugi
208208
### Linux or macOS
209209

210210
Download your OS tarball:
211-
```console
211+
```shell
212212
export OSTYPE="$(uname | tr A-Z a-z)"
213213
curl -fsSL --output "/tmp/docker-app-${OSTYPE}.tar.gz" "https://github.com/docker/app/releases/download/v0.8.0/docker-app-${OSTYPE}.tar.gz"
214214
tar xf "/tmp/docker-app-${OSTYPE}.tar.gz" -C /tmp/
215215
```
216216

217217
Install as a Docker CLI plugin:
218-
```console
218+
```shell
219219
mkdir -p ~/.docker/cli-plugins && cp "/tmp/docker-app-plugin-${OSTYPE}" ~/.docker/cli-plugins/docker-app
220220
```
221221

0 commit comments

Comments
 (0)