navi: Update docker-compose sheet
This commit is contained in:
parent
ec195ca859
commit
b0238bf69a
@ -1,12 +1,21 @@
|
|||||||
% docker-compose
|
% docker-compose
|
||||||
|
|
||||||
# Builds, (re)creates, starts, and attaches to containers for all services
|
# Up a compose YAML
|
||||||
sudo docker-compose -f <file> up
|
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
|
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
|
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}'
|
$ file: ls *.yaml | awk '{print $1}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user