Skip to content

Commit

Permalink
Enable IPv6 support in Dockers to workaround travis-ci/travis-ci#8891.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Dec 23, 2017
1 parent 2352a88 commit 8d76e28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ env:
before_install:
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
- mkdir -p $HOME/rustsrc
# FIXME(#46924): these two commands are required to enable IPv6,
# they shouldn't exist, please revert once more official solutions appeared.
# see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
- if [ "$TRAVIS_OS_NAME" = linux ]; then
echo '{"ipv6":true,"fixed-cidr-v6":"fe80::/64"}' | sudo tee /etc/docker/daemon.json;
sudo service docker restart;
fi

install:
- case "$TRAVIS_OS_NAME" in
Expand Down

0 comments on commit 8d76e28

Please sign in to comment.