1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-23 18:48:54 +00:00

Merge pull request #22 from amirarsalan/tools/docker

update docker-compose and add docker service command
This commit is contained in:
Julien Le Coupanec 2018-02-11 19:31:27 +01:00 committed by GitHub
commit 8dbf559bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,26 @@ docker-compose up
docker-compose up -d
docker-compose down
docker-compose logs
docker-compose restart # Restart all service
docker-compose pull # Pull all image service
docker-compose build # Build all image service
docker-compose config # Validate and view the Compose file
docker-compose scale <service_name>=<replica> # Scale special service(s)
docker-compose top # Display the running processes
##############################################################################
# DOCKER SERVICES
##############################################################################
docker service create <options> <image> <command> # Create new service
docker service inspect --pretty <service_name> # Display detailed information Service(s)
docker service ls # List Services
docker service ps # List the tasks of Services
docker service scale <service_name>=<replica> # Scale special service(s)
docker service update <options> <service_name> # Update Service options
##############################################################################
# DOCKER STACK
##############################################################################