Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Added support to keep containers by their container name #22

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

DaveDeCaprio
Copy link
Contributor

I added a variable called KEEP_CONTAINERS_NAMED which allows you to save containers by their container name instead of just matching on image name.

I am using this to keep around all containers with names like "*-data", since that is the convention I use for my data volume containers.

@@ -77,6 +85,16 @@ do
fi
done
fi
if [ -n "${KEEP_CONTAINERS_NAMED}" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of duplication with this block here, perhaps something that could be refactored out as a bash function?

@DaveDeCaprio
Copy link
Contributor Author

Ok, I pulled that out into a function.

@mikljohansson mikljohansson merged commit 3edda8a into meltwater:master Mar 31, 2016
mikljohansson added a commit that referenced this pull request Mar 31, 2016
@mikljohansson mikljohansson mentioned this pull request Mar 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants