Skip to content

Commit

Permalink
Force Ubuntu Docker to use OverlayFS
Browse files Browse the repository at this point in the history
  • Loading branch information
dagguh committed May 21, 2021
1 parent abc962b commit 875719b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class Docker private constructor(
timeout = mainPackageTimeout
)
ssh.execute("sudo service docker status || sudo service docker start")
ssh.safeExecute("sudo cat /etc/docker/daemon.json")
ssh.execute("sudo docker info")
ssh.execute("echo '{\"storage-driver\": \"overlay2\"}' | sudo tee /etc/docker/daemon.json")
ssh.execute("sudo service docker restart")
ssh.execute("sudo cat /etc/docker/daemon.json")
ssh.execute("sudo docker info")
IdempotentAction("poll docker") {
ssh.execute("sudo docker ps")
}.retry(2, StaticBackoff(Duration.ofSeconds(1)))
Expand Down

0 comments on commit 875719b

Please sign in to comment.