Skip to content

Instantly share code, notes, and snippets.

@jackspirou
Last active November 1, 2015 17:39
Show Gist options
  • Save jackspirou/873f5751e145771b313e to your computer and use it in GitHub Desktop.
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.
#!/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