Invalid port specification: 601342
I want to deploy gitlab-ce 7.13-stable using docker 1.7.1 and docker-compose 1.3.2
Instead of using fig.yml, I use my own docker-compose.yml:
gitlab:
restart: always
build: .
ports:
- 10443:443
- 10080:80
- 10022:22
volumes:
- /srv/gitlab/config:/etc/gitlab
- /srv/gitlab/data:/var/opt/gitlab
- /srv/gitlab/logs:/var/log/gitlab
Running docker-compose up -d
successfully built, but fails after creating the container saying Invalid port specification: 601342
I found out that the problem is the port mapping of SSH 22 to any host port. When I remove the line from file, everything is ok and gitlab container is started.
In addition, when editing my docker-compose.yml
in vim
the 'bad' line -10022:22
is displayed in red (the text is red). The other lines' text are white coloured (as expected). I've played around a little bit. -10022:22
-10022:32
-10022:42
-10022:52
-10022:62
is red text, too. Since -10022:72
text colour is white. (Actually I didn't test if docker-compose up -d
succeeds at all).
What's up there?