mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-05 06:13:59 +01:00
6 lines
335 B
Fish
6 lines
335 B
Fish
|
function ddown
|
||
|
set -l workdir (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}' (docker ps -q | head -n1))
|
||
|
set -l compose_file (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.config_files" }}' (docker ps -q | head -n1))
|
||
|
docker-compose -f "$workdir/$compose_file" down
|
||
|
end
|