Skip to content

Instantly share code, notes, and snippets.

@Maartenvm
Last active January 29, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maartenvm/67df1049a8e7be3e899edc453ae9dc05 to your computer and use it in GitHub Desktop.
Save Maartenvm/67df1049a8e7be3e899edc453ae9dc05 to your computer and use it in GitHub Desktop.
Update the Storyteller server
// log in to the server
// change directory
cd /ubuntu/Storyteller
// Stop the Storyteller server gracefully
sudo docker-compose down
sudo docker volume rm data
// Pull the new images from dockerhub
sudo docker-compose pull
// Start the docker-compose again (this downloads all of the updated images from dockerhub automatically)
sudo docker volume create --name=data
sudo docker-compose up
=================================================================================================
TROUBLESHOOTING:
// Kill all docker containers and docker images and try again from scratch:
// Verify that the Storyteller dockers are the only dockers on the server:
sudo docker ps
// If so (should be), kill all docker containers and remove all images and volumes
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)
sudo docker volume rm $(sudo docker volume ls -qf dangling=true)
// Start the docker-compose again (this downloads all of the updated images from dockerhub automatically)
sudo docker volume create --name=data
sudo docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment