Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Swarm doc #1221

Merged
merged 1 commit into from Mar 30, 2015
Merged

Update Swarm doc #1221

merged 1 commit into from Mar 30, 2015

Conversation

aanand
Copy link

@aanand aanand commented Mar 30, 2015

  • Co-scheduling will now work, so we can remove the stuff about volumes_from and net and manual affinity filters.
  • Added a section about building.

Closes #1208.

- Co-scheduling will now work, so we can remove the stuff about
  `volumes_from` and `net` and manual affinity filters.

- Added a section about building.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
@aanand aanand added this to the 1.2.0 milestone Mar 30, 2015

Here, we express an affinity filter on all web containers, saying that each one must run alongside a container whose name begins with `myproject_db_`.
`docker build` against a Swarm cluster is not implemented, so for now the `build` option will not work - you will need to manually build your service's image, push it somewhere and use `image` to instruct Compose to pull it. Here's an example using the Docker Hub:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be an opportunity here to link off to doc about how to do multiple environments with Compose. In dev, you can use build: ., in production you can use image: myusername/web and point at Swarm.

@bfirsh
Copy link

bfirsh commented Mar 30, 2015

LGTM

bfirsh added a commit that referenced this pull request Mar 30, 2015
@bfirsh bfirsh merged commit 43369cd into docker:master Mar 30, 2015
@aanand aanand deleted the update-swarm-doc branch March 30, 2015 19:41
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Update Swarm doc
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Update Swarm doc
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document that containers are scheduled onto the same node on Swarm
2 participants