Skip to content

Commit

Permalink
Fix manager and worker join tokens
Browse files Browse the repository at this point in the history
* Fix manager and worker join tokens. Issue #2088.

Fix screenshots per issue #2126

Move vote images to correct dir

Fix rendering issue with inline code snippet #1990

Fix for stack yaml reference (#1476)

Fix image link

Add shutdown procedures for #1017

* Make the fix asked in the PR

Little fix
  • Loading branch information
jmaitrehenry authored and Misty Stanley-Jones committed Apr 21, 2017
1 parent 82d1d09 commit 3edabae
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 15 deletions.
16 changes: 13 additions & 3 deletions compose/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,25 @@ In this section, you set up the database connection for Django.

> **Note:**
> On certain platforms (Windows 10), you may additionally need to edit `ALLOWED_HOSTS`
> inside settings.py and add your Docker hostname or IP to the list. For demo
> inside settings.py and add your Docker hostname or IP to the list. For demo
> purposes, you may set the value to:
>
> ALLOWED_HOSTS = ['*']
>
> Please note this value is **not** safe for production usage. Refer to the
> [Django documentation](https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts)
> Please note this value is **not** safe for production usage. Refer to the
> [Django documentation](https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts)
> for more information.
5. Clean up: Shut down containers with CONTROL-C.

```
Gracefully stopping... (press Ctrl+C again to force)
Killing test_web_1 ... done
Killing test_db_1 ... done
```

It's safe to `rm -rf` your project directory.

## More Compose documentation

- [User guide](index.md)
Expand Down
10 changes: 6 additions & 4 deletions docker-cloud/apps/stack-yaml-reference.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
description: Stack YAML reference
keywords: YAML, stack, reference
description: Stack YAML reference for Docker Cloud
keywords: YAML, stack, reference, docker cloud
redirect_from:
- /docker-cloud/feature-reference/stack-yaml-reference/
title: Cloud stack file YAML reference
title: Docker Cloud stack file YAML reference
---

A stack is a collection of services that make up an application in a specific environment. Learn more about stacks [here](stacks.md). A **stack file** is a file in YAML format that defines one or more services, similar to a `docker-compose.yml` file but with a few extensions. The default name for this file is `docker-cloud.yml`.
A stack is a collection of services that make up an application in a specific environment. Learn more about stacks for Docker Cloud [here](stacks.md). A **stack file** is a file in YAML format that defines one or more services, similar to a `docker-compose.yml` file for Docker Compose but with a few extensions. The default name for this file is `docker-cloud.yml`.

[Looking for information on stack files for Swarm?](/compose/compose-files/index.md).

## Stack file example

Expand Down
10 changes: 5 additions & 5 deletions docker-for-mac/osxfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Desktop boot etc lib lib64 media opt root sbin sys usr
bin dev home lib32 libx32 mnt proc run srv tmp var
```

By default, you can share files in `/Users/`, `/Volumes/`, `/private/`, and `/tmp`
By default, you can share files in `/Users/`, `/Volumes/`, `/private/`, and `/tmp`
directly.
To add or remove directory trees that are exported to Docker, use the
**File sharing** tab in Docker preferences ![Docker Preferences]("docker-for-mac/images/whale-x.png) -> **Preferences** ->
To add or remove directory trees that are exported to Docker, use the
**File sharing** tab in Docker preferences ![Docker Preferences](images/whale-x.png) -> **Preferences** ->
**File sharing**. (See [Preferences](index.md#preferences).)

All other paths
Expand Down Expand Up @@ -171,7 +171,7 @@ you may experience exceptional, adequate, or poor performance with `osxfs`, the
file system server in Docker for Mac. File system APIs are very wide (20-40
message types) with many intricate semantics involving on-disk state, in-memory
cache state, and concurrent access by multiple processes. Additionally, `osxfs`
integrates a mapping between macOS's FSEvents API and Linux's inotify API
integrates a mapping between macOS's FSEvents API and Linux's `inotify` API
which is implemented inside of the file system itself complicating matters
further (cache behavior in particular).

Expand Down Expand Up @@ -317,7 +317,7 @@ the Beta channel in the coming release cycles.

In due course, we will open source all of our shared file system components. At
that time, we would be very happy to collaborate with you on improving the
implementation of osxfs and related software.
implementation of `osxfs` and related software.

We still have on the slate to write up and publish details of shared file system
performance analysis and improvement on the Docker blog. Look for or nudge
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added engine/getstarted-voting-app/images/vote.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/getstarted-voting-app/images/vote.png.orig
Binary file not shown.
6 changes: 3 additions & 3 deletions engine/swarm/swarm-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $ docker swarm join-token manager
To add a worker to this swarm, run the following command:

docker swarm join \
--token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \
--token SWMTKN-1-59egwe8qangbzbqb3ryawxzk3jn97ifahlsrw01yar60pmkr90-bdjfnkcflhooyafetgjod97sz \
192.168.99.100:2377
```

Expand Down Expand Up @@ -156,13 +156,13 @@ token. Specify whether you want to rotate the token for `worker` or `manager`
nodes:

```bash
$docker swarm join-token --rotate worker
$ docker swarm join-token --rotate worker

To add a worker to this swarm, run the following command:

docker swarm join \
--token SWMTKN-1-2kscvs0zuymrsc9t0ocyy1rdns9dhaodvpl639j2bqx55uptag-ebmn5u927reawo27s3azntd44 \
172.17.0.2:2377
192.168.99.100:2377
```

## Learn More
Expand Down

0 comments on commit 3edabae

Please sign in to comment.