Skip to content

Commit

Permalink
Removing a container also removes its cidfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperville committed Jun 11, 2014
1 parent b4258bf commit b703388
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions providers/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ def remove_container
'force' => new_resource.force
)
docker_cmd!("rm #{rm_args} #{current_resource.id}")
remove_cidfile
end

def remove_cidfile
# run at compile-time to ensure cidfile is gone before running docker_cmd()
file cidfile do
action :nothing
end.run_action(:delete)
end

def remove_link
Expand Down

0 comments on commit b703388

Please sign in to comment.