1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-19 08:49:45 +00:00

update docker-compose and add docker service command

This commit is contained in:
Amir Arsalan 2018-02-11 02:30:08 +03:30
parent 3877873002
commit 90ee1fbdf7

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
##############################################################################