Skip to content

Commit

Permalink
Add systemctl command to start Docker service
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflester committed Jun 11, 2024
1 parent ca97a5f commit e269651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def start_docker_daemon():
if sys.platform.lower() == "darwin":
return_code = subprocess.call("open --background -a Docker", shell=True)
elif "linux" in sys.platform.lower():
return_code = subprocess.call("sudo service docker start", shell=True)
return_code = subprocess.call(
"sudo service docker start; sudo systemctl start docker", shell=True
)
else:
raise RuntimeError(f"Incompatible testing platform: {sys.platform}")
if return_code != 0:
Expand Down

0 comments on commit e269651

Please sign in to comment.