Last active
September 2, 2016 07:49
-
-
Save vadikgo/c426c1058660be3545f5110d232fba98 to your computer and use it in GitHub Desktop.
Upgrade docker gitlab/gitlab-ce image with volumes data
This file contains hidden or 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/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