Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #745 from ulyssessouza/fix-readme-shell-markdown
Browse files Browse the repository at this point in the history
Fix shell code formatting
  • Loading branch information
carolinebriaud authored Nov 15, 2019
2 parents 02a383c + cf3d3ee commit d7d8312
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ services:
Next, create an App definition using the `docker app init` command:

```console
```shell
$ docker app init --compose-file docker-compose.yml hello
Created "hello.dockerapp"
$ tree
Expand Down Expand Up @@ -154,7 +154,7 @@ text: hello development

Next, build an App image:

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

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

```console
```shell
$ docker app push myrepo/hello:0.1.0
```

Now run your App:

```console
```shell
$ docker app run myrepo/hello:0.1.0
```

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.

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.

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

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

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

Expand Down

0 comments on commit d7d8312

Please sign in to comment.