Skip to content

Golang Docker Machine, Docker Swarm, Docker Stack Example

Notifications You must be signed in to change notification settings

callicoder/go-docker-swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-docker-swarm

  • Docker: Create a single container.
  • Docker Compose: Manager and Orchestrate multiple containers on a single host.
  • Docker Machine: Create and manage VMs running docker daemon.
  • Docker Swarm: A Cluster of docker nodes.
  • Docker Stack: Deploy, Manage, and Orchestrate multiple containers on a swarm cluster.

Running the app on a single host using docker-compose

$ docker-compose up
$ curl http://localhost:8080/
3f741654cee0: Welcome! Please hit the `/qod` API to get the quote of the day.

$ curl http://localhost:8080/qod
3f741654cee0: If I work as hard as I can, I wonder how much I can do in a day?

Running the app on a swarm cluster using docker-stack

Read the tutorial: Container Orchestration with Docker Machine, Docker Stack, and Swarm

About

Golang Docker Machine, Docker Swarm, Docker Stack Example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published