Skip to content

Commit 8d76e28

Browse files
committed
Enable IPv6 support in Dockers to workaround travis-ci/travis-ci#8891.
1 parent 2352a88 commit 8d76e28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,13 @@ env:
190190
before_install:
191191
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
192192
- mkdir -p $HOME/rustsrc
193+
# FIXME(#46924): these two commands are required to enable IPv6,
194+
# they shouldn't exist, please revert once more official solutions appeared.
195+
# see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
196+
- if [ "$TRAVIS_OS_NAME" = linux ]; then
197+
echo '{"ipv6":true,"fixed-cidr-v6":"fe80::/64"}' | sudo tee /etc/docker/daemon.json;
198+
sudo service docker restart;
199+
fi
193200

194201
install:
195202
- case "$TRAVIS_OS_NAME" in

0 commit comments

Comments
 (0)