From 5fba04718dbdd501dd96ab4451692c18f7edca91 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 17 Oct 2019 11:39:52 +0300 Subject: [PATCH 1/2] [PIO-212] pio-docker properly identify container pio-docker to identify container by image id described in docker/docker-compose.yml --- docker/bin/pio-docker | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docker/bin/pio-docker b/docker/bin/pio-docker index 8046060de2..2b0e65a95c 100755 --- a/docker/bin/pio-docker +++ b/docker/bin/pio-docker @@ -25,10 +25,7 @@ get_container_id() { echo $PIO_CONTAINER_ID return fi - for i in `docker ps -f "name=pio" -q` ; do - echo $i - return - done + docker ps -f ancestor=predictionio/pio -q } get_current_dir() { From f2bcb11fb4aba47b8f5867794a4969218cb54b5d Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 18 Oct 2019 09:58:07 +0300 Subject: [PATCH 2/2] Prevent errors pio-docker running in background Previously I got "the input device is not a TTY" when starting pio-docker in background --- docker/bin/pio-docker | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/bin/pio-docker b/docker/bin/pio-docker index 2b0e65a95c..f70e4e4e80 100755 --- a/docker/bin/pio-docker +++ b/docker/bin/pio-docker @@ -49,5 +49,4 @@ fi wdir=`get_current_dir` -docker exec -w $wdir -it $cid pio $@ - +docker exec -w $wdir $cid pio $@