Skip to content

Commit

Permalink
No longer assuming DooD support in image
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Jan 29, 2024
1 parent ea8a638 commit cb585f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli50/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,12 @@ def main():
["--publish-all"] +
[f"{IMAGE}:{args['tag']}"] + cmd).decode("utf-8").rstrip()

# Start Docker-outside-of-Docker
# Start Docker-outside-of-Docker (if supported by TAG)
# a la https://github.com/devcontainers/features/blob/main/src/docker-outside-of-docker/install.sh
subprocess.check_output(["docker", "exec", container, "sudo", "/etc/init.d/docker", "start"])
try:
subprocess.check_output(["docker", "exec", container, "sudo", "/etc/init.d/docker", "start"])
except subprocess.CalledProcessError:
pass

# List port mappings
print(ports(container))
Expand Down

0 comments on commit cb585f5

Please sign in to comment.