Skip to content

Commit 78c7f9f

Browse files
authored
adding restart policy and name to docker run (#97)
1 parent c27282b commit 78c7f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctfcli/utils/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def ssh(challenge, host):
3131
[
3232
"ssh",
3333
host.netloc,
34-
f"docker run -d -p{exposed_port}:{exposed_port} {image_name}",
34+
f"docker run -d -p{exposed_port}:{exposed_port} --name {image_name} --restart always {image_name}",
3535
]
3636
)
3737

0 commit comments

Comments
 (0)