Skip to content

Commit

Permalink
Make failure to stop a container non-fatal.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 14, 2021
1 parent 4432cbe commit d98c456
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ function query_container(container)
end

function kill_container(container)
cmd = pipeline(`docker stop $container`, stdout=devnull)
Base.run(cmd)
if !success(pipeline(`docker stop $container`, stdout=devnull))
@warn "Could not stop container $container"
end
end

function run(julia_versions::Vector{VersionNumber}, pkgs::Vector;
Expand Down

0 comments on commit d98c456

Please sign in to comment.