navi: Update to docker compose v2
This commit is contained in:
parent
4f19441ab1
commit
ffc9f09c0f
@ -1,21 +1,21 @@
|
||||
% docker-compose
|
||||
|
||||
# Up a compose YAML
|
||||
sudo docker-compose -f <file> up
|
||||
sudo docker compose -f <file> up
|
||||
|
||||
# Up and daemonze a compose YAML
|
||||
sudo docker-compose -f <file> up -d
|
||||
sudo docker compose -f <file> up -d
|
||||
|
||||
# Up and daemonze a compose YAML (force)
|
||||
sudo docker-compose -f <file> up -d --force-recreate
|
||||
sudo docker compose -f <file> up -d --force-recreate
|
||||
|
||||
# Up and daemonze a compose YAML
|
||||
sudo docker-compose -f <file> down
|
||||
# Down 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
|
||||
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
|
||||
sudo docker compose -f <file> logs --tail 100 -f
|
||||
|
||||
$ file: ls *.yaml | awk '{print $1}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user