The only real gotcha that I ran into was that I ran out of disk space almost immediately after installing Docker registry. What?! Yup, since Compute Engine starts you out with an 8GB disk you need to:
- Provision a bigger disk and attach it
- Move Docker onto the bigger disk
We're going to assume I added a bigger disk and mounted it to /docker-storage.
- Stop docker - 'service docker stop'
- Edit /etc/default/docker - you're looking for the line that sets DOCKER_OPTS. You want to add a -g flag and where you want Docker to run from. In my example, I prepended
-g=/docker-storage/docker
- Move the files from the default Docker location (/var/lib/docker) to the new mount: 'cd /var/lib; mv docker /docker-storage/'
- Restart docker - 'service docker start'
No comments:
Post a Comment