summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytse@gitlab.com>2015-06-11 16:17:30 +0000
committerSytse Sijbrandij <sytse@gitlab.com>2015-06-11 16:17:30 +0000
commite741edc2a482f5648105f4b5839e5824bd0cb565 (patch)
tree0f54ba0ece49db8cbf2bd802fafd53af28cd50a1 /docker
parent8f142c4aaeac73743196b1648677eb712f70c87b (diff)
downloadgitlab-ce-e741edc2a482f5648105f4b5839e5824bd0cb565.tar.gz
Self build images require different build commands.
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/README.md b/docker/README.md
index 3edce5ef561..fb3bde5016d 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -94,7 +94,12 @@ sudo docker build --tag gitlab-data docker/data/
sudo docker build --tag gitlab-app:7.10.1 docker/app/
```
-After this run the images as described in the previous section.
+After this run the images:
+
+```bash
+sudo docker run --name gitlab-data gitlab-data /bin/true
+sudo docker run --detach --name gitlab-app --publish 8080:80 --publish 2222:22 --volumes-from gitlab-data gitlab-app:7.10.1
+```
We assume using a data volume container, this will simplify migrations and backups.
This empty container will exist to persist as volumes the 3 directories used by GitLab, so remember not to delete it.