Skip to content

Instantly share code, notes, and snippets.

@vadikgo
Last active September 2, 2016 07:49
Show Gist options
  • Save vadikgo/c426c1058660be3545f5110d232fba98 to your computer and use it in GitHub Desktop.
Save vadikgo/c426c1058660be3545f5110d232fba98 to your computer and use it in GitHub Desktop.
Upgrade docker gitlab/gitlab-ce image with volumes data
#!/bin/sh
set -e
#pip install docker-replay
#docker-replay -p gitlab-ce
docker pull gitlab/gitlab-ce
docker stop gitlab-ce
docker create --volumes-from gitlab-ce \
--hostname 1753deeeb7fa \
--interactive \
--tty \
--memory-swappiness -1 \
--publish-all \
--name gitlab-ce2 \
--publish 32773:22/tcp \
--publish 32771:443/tcp \
--publish 80:80/tcp \
--expose 22/tcp \
--expose 443/tcp \
--expose 80/tcp \
gitlab/gitlab-ce:latest \
/assets/wrapper
docker start gitlab-ce2
docker rm gitlab-ce
docker rename gitlab-ce2 gitlab-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment