Skip to content

Respheal/ansible-role-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Deploying Docker on CentOS7

After installing docker on fleet:

$ docker swarm init --advertise-addr [main IP]

Make a registry if using a local one:

$ docker service create --name registry --publish published=5000,target=5000 registry:2

Add the visualizer:

docker service create \
  --name=viz \
  --publish=8080:8080/tcp \
  --constraint=node.role==manager \
  --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
  dockersamples/visualizer

Requirements

  • CentOS7

Role Variables

registry_ip: Set this to the IP of the main docker server

License

GPLv3

About

Role for quick docker deploy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages