Commit f82d5138 authored by Jérémie Lanceleur's avatar Jérémie Lanceleur
Browse files

add comment in

parent 667d10b2
Pipeline #3194 passed with stages
in 1 minute and 45 seconds
#connect to private container registry
echo "$3" | docker login -u $2 --password-stdin $1
#pull images used in docker-compose
docker-compose pull
#retart or up docker services with docker-compose
if sudo docker container ls -a --format '{{.Names}}' | grep -Eq "^${container_name}\$"; then
docker-compose restart
docker-compose up -d --remove-orphans
#clean docker environment
docker image prune --force
docker container prune --force
docker volume prune --force
#logout docker registry
docker logout $1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment