navi: Update docker-compose sheet
This commit is contained in:
parent
d6588e34f6
commit
2538ab1863
@ -1,12 +1,21 @@
|
||||
% docker-compose
|
||||
|
||||
# Builds, (re)creates, starts, and attaches to containers for all services
|
||||
# Up a compose YAML
|
||||
sudo docker-compose -f <file> up
|
||||
|
||||
# Builds, (re)creates, starts, and dettaches to containers for all services
|
||||
# Up and daemonze a compose YAML
|
||||
sudo docker-compose -f <file> up -d
|
||||
|
||||
# Stops containers and removes containers, networks created by up
|
||||
# Up and daemonze a compose YAML (force)
|
||||
sudo docker-compose -f <file> up -d --force-recreate
|
||||
|
||||
# Up and daemonze a compose YAML
|
||||
sudo docker-compose -f <file> down
|
||||
|
||||
# Print the last lines of compose YAML logs
|
||||
sudo docker-compose -f <file> logs --tail 100
|
||||
|
||||
# Print the last lines of compose YAML logs and following its logs
|
||||
sudo docker-compose -f <file> logs --tail 100 -f
|
||||
|
||||
$ file: ls *.yaml | awk '{print $1}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user