Skip to content

Commit

Permalink
fix: updated docker prompt with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Aug 26, 2024
1 parent d03e284 commit a053cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "> Pull docker image"
sudo docker pull "${REGISTRY_URL}"/"${IMAGE_NAME}":"${TAG}"

echo "> Stop running docker container"
if [ "$(docker ps -a -q -f name=${CONTAINER_NAME})" ]; then
if [ "$(sudo docker ps -a -q -f name=${CONTAINER_NAME})" ]; then
sudo docker stop ${CONTAINER_NAME}
sudo docker rm ${CONTAINER_NAME}
fi
Expand Down

0 comments on commit a053cff

Please sign in to comment.