Skip to content

Commit

Permalink
Re-add sudo to docker start/stop commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflester committed Jun 11, 2024
1 parent cef97cf commit 721aab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def start_docker_daemon():
return_code = subprocess.call("open --background -a Docker", shell=True)
elif "linux" in sys.platform.lower():
return_code = subprocess.call(
"service docker start; systemctl start docker", shell=True
"sudo service docker start; sudo systemctl start docker.socket", shell=True
)
else:
raise RuntimeError(f"Incompatible testing platform: {sys.platform}")
Expand All @@ -86,7 +86,7 @@ def stop_docker_daemon():
return_code = subprocess.call("osascript -e 'quit app \"Docker\"'", shell=True)
elif "linux" in sys.platform.lower():
return_code = subprocess.call(
"service docker stop; systemctl stop docker.socket", shell=True
"sudo service docker stop; sudo systemctl stop docker.socket", shell=True
)
else:
raise RuntimeError(f"Incompatible testing platform: {sys.platform}")
Expand Down

0 comments on commit 721aab9

Please sign in to comment.