Last active
January 29, 2018 14:56
-
-
Save Maartenvm/67df1049a8e7be3e899edc453ae9dc05 to your computer and use it in GitHub Desktop.
Update the Storyteller server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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