Skip to content

Commit

Permalink
move the docker config up
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Jan 7, 2021
1 parent 783242f commit de53b04
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/travis-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ set -ex

curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 && chmod +x container-diff-linux-amd64 && sudo mv container-diff-linux-amd64 /usr/local/bin/container-diff


sudo rm -rf /var/lib/apt/lists/*
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
sudo apt-get update
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

mkdir -p $HOME/.docker/
echo '{"experimental": "enabled"}' > $HOME/.docker/config.json
echo '{"experimental":"enabled", "exec-opts": ["native.cgroupdriver=systemd"]}' | sudo tee /etc/docker/daemon.json
echo '{"experimental": "enabled", "exec-opts": ["native.cgroupdriver=systemd"]}' | sudo tee /etc/docker/daemon.json

sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

mkdir -vp ~/.docker/cli-plugins/
curl --silent -L "https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
Expand Down

0 comments on commit de53b04

Please sign in to comment.