From 3b13a0ff0e8a86045b28de25ff38dfb1dccd6f94 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 9 Nov 2022 15:34:37 +0100 Subject: [PATCH] Fix ddown function for compose v2 --- dot_config/fish/private_functions/ddown.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/fish/private_functions/ddown.fish b/dot_config/fish/private_functions/ddown.fish index cca0901..f7fc932 100644 --- a/dot_config/fish/private_functions/ddown.fish +++ b/dot_config/fish/private_functions/ddown.fish @@ -1,5 +1,5 @@ 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 + #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 end