Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Last active June 20, 2016 19:11
Show Gist options
  • Save goyalankit/38a6dcaca7e8fdbce0cf0889b21c7cc0 to your computer and use it in GitHub Desktop.
Save goyalankit/38a6dcaca7e8fdbce0cf0889b21c7cc0 to your computer and use it in GitHub Desktop.
dockerswarm
----
highly available, fault tolerant. replacing kubernates?
docker service
--------
- labels to target hosts. using constraints.
| Docker Service Commands |
|-------------------------|
| docker service create |
| docker service scale | --> can deploy more instances of your app
swarmkit -> orchestration technology
services depends on completion of tasks. currently tasks are satisfied when
containers are up.
routing mesh:
- container aware, autometically reroutes to a host that's running the container.
- works with existing load balancers
### container healthcheck in Dockerfile (in process)
```
CMD curl -f http://localhost:5000/admin | exit 1
```
### Plugins
```
docker plugin install|enable|disable
```
------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment