summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorRowan Wookey <admin@rwky.net>2015-08-24 23:06:48 +0100
committerRowan Wookey <admin@rwky.net>2015-08-26 12:12:43 +0100
commit3655e433dd697998578b03dc57191a412f505f5a (patch)
treeae31cf157c98134a2ad74b22dfbd0a5b9ffa221d /docker
parentc52fe24c3694463c828c5efa0a38510cb8229a36 (diff)
downloadgitlab-ce-3655e433dd697998578b03dc57191a412f505f5a.tar.gz
Fixed #1952 docker ssh connection times can be slow when UseDNS is enabled
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 05521af6963..304bb97409e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -25,6 +25,9 @@ RUN mkdir -p /opt/gitlab/sv/sshd/supervise \
&& ln -s /opt/gitlab/sv/sshd /opt/gitlab/service \
&& mkdir -p /var/run/sshd
+# Disabling use DNS in ssh since it tends to slow connecting
+RUN echo "UseDNS no" >> /etc/ssh/sshd_config
+
# Prepare default configuration
RUN ( \
echo "" && \