Skip to content

Commit

Permalink
setup DNS for docker in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Sep 1, 2023
1 parent 27cb5ad commit 38d23e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Enable Docker experimental features
- name: Enable Docker experimental features and setup DNS
run: |
jq '.experimental=true' /etc/docker/daemon.json > daemon.json
jq '.experimental=true | .dns=["1.1.1.1"]' /etc/docker/daemon.json > daemon.json
sudo mv daemon.json /etc/docker/daemon.json
sudo systemctl restart docker
docker version -f '{{.Server.Experimental}}'
Expand Down

0 comments on commit 38d23e8

Please sign in to comment.