Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

[PIO-212] pio-docker properly identify container #523

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docker/bin/pio-docker
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -52,5 +49,4 @@ fi

wdir=`get_current_dir`

docker exec -w $wdir -it $cid pio $@

docker exec -w $wdir $cid pio $@