Last active
November 1, 2015 17:39
-
-
Save jackspirou/873f5751e145771b313e to your computer and use it in GitHub Desktop.
A quick script to update a running drone/drone:0.4 docker image.
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
#!/bin/bash | |
# first stop and remove your running Drone instance | |
sudo docker stop drone | |
sudo docker rm drone | |
# pull the latest Drone image | |
sudo docker pull drone/drone:0.4 | |
# re-run the container using the latest Drone image | |
sudo docker run --volume /var/lib/drone:/var/lib/drone --volume /var/run/docker.sock:/var/run/docker.sock --env-file /etc/drone/dronerc --restart=always --publish=80:8000 --detach=true --name=drone drone/drone:0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment