Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ GitLab will occupy by default the following ports inside the container:
> **Note:**
The format for publishing ports is `hostPort:containerPort`. Read more in
Docker's documentation about [exposing incoming ports][docker-ports].
For the web interface, `containerPort` in the `docker run` command should
be the same with the port in `external_url`.

> **Warning:**
Do NOT use port `8080` otherwise there will be conflicts. This port is already
Expand All @@ -262,7 +264,7 @@ port `2289`, use the following `docker run` command:
```bash
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 8929:80 --publish 2289:22 \
--publish 8929:8929 --publish 2289:22 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
Expand Down Expand Up @@ -299,6 +301,7 @@ web browser under `<hostIP>:8929` and push using SSH under the port `2289`.
A `docker-compose.yml` example that uses different ports can be found in the
[docker-compose](#install-gitlab-using-docker-compose) section.


## Diagnose potential problems

Read container logs:
Expand Down