Skip to content

Instantly share code, notes, and snippets.

@diyfr
Last active December 18, 2017 14:00
Show Gist options
  • Save diyfr/9c906fcf70a4c55c39cd10e009d2f8ee to your computer and use it in GitHub Desktop.
Save diyfr/9c906fcf70a4c55c39cd10e009d2f8ee to your computer and use it in GitHub Desktop.
Memo update Docker Image
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment