- docker run -itd -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -u root jenkins/jenkins:lts
- api_server
- db_server
-
- run each containter
- container connection on external network
-
- docker-compose
- Docker-swarm
- curl -fsSL https://get.docker.com -o get-docker.sh
- sh get-docker.sh
- curl -L "https://github.com/docker/compose/releases/download/1.28.8/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose