mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-19 08:49:45 +00:00
Merge pull request #22 from amirarsalan/tools/docker
update docker-compose and add docker service command
This commit is contained in:
commit
8dbf559bdb
@ -31,8 +31,26 @@ docker-compose up
|
|||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker-compose logs
|
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
|
# DOCKER STACK
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user