#!/bin/bash
docker pull myregistry.example.com/myapp:latest
docker stop myapp
docker rm myapp
docker rmi myregistry.example.com/myapp:current
docker tag myregistry.example.com/myapp:latest myregistry.example.com/myapp:current
Simple docker start
docker run -d --name myapp myregistry.example.com/myapp:current
with docker-compose
docker-compose up -d