dotfiles/dot_config/fish/private_functions/ddown.fish

6 lines
339 B
Fish
Raw Normal View History

2022-03-09 09:19:48 +01:00
function ddown
2022-11-09 15:34:37 +01:00
#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 "$compose_file" down
2022-03-09 09:19:48 +01:00
end