Docker Community Forums

Share and learn in the Docker community.

Docker GitLab – SSH via IPv6 not available


(Macwinnie) #1

Hi Docker Community,

I’ve got a problem with my GitLab Docker installation – and I’m not sure where to go with that trouble.

I’ve set up a docker GitLab behind a Træfik Reverseproxy for Port 80 and 443 (which works pretty fine for IPv4 and IPv6).
Even the SSH-Connect to the GitLab-Container via IPv4 works pretty fine:

ssh git@git.domain.tld

PTY allocation request failed on channel 0
Welcome to GitLab, Martin!
Connection to git.domain.tld closed.

But SSH via IPv6 returns a timeout:

ssh git@2001:db8:a0b:12f0::1

ssh: connect to host 2001:db8:a0b:12f0::1 port 22: Operation timed out

So that’s the question, I’ve got for you: where do I have to change my settings for getting a connective SSH Port 22 via IPv6?

My Docker-Setup of the GitLab-Container looks like that:

docker run -d \
  --name gitlab \
  --network proxy \
  --hostname git.domain.tld \
  --label traefik.backend="GitLab" \
  --label traefik.docker.network="proxy" \
  --label traefik.frontend.entryPoints="http,https" \
  --label traefik.frontend.rule="Host:git.domain.tld" \
  --label traefik.port="80" \
  --label traefik.protocol="http" \
  --restart always \
  --publish 22:22 \
  --volume /srv/gitlab/logs:/var/log/gitlab \
  --volume /srv/gitlab/data:/var/opt/gitlab \
  --volume /srv/gitlab/config:/etc/gitlab \
  gitlab/gitlab-ce:latest

(IP-Addresses and URLs faked – no working examples!)

If you could help me, it would be great =)
Thank you,
Martin