Add Docker oneshot dockrun command.

This commit is contained in:
Jeff Geerling committed 2017-05-30 13:09:16 -05:00
1 parent df7e9f3021
commit ac188bd320
1 file changed
+6
+6
View File
@@ -101,6 +101,12 @@ fi
# Disable cowsay in Ansible.
export ANSIBLE_NOCOWS=1
# Super useful Docker container oneshots.
# Usage: dockrun, or dockrun [centos7|fedora24|debian8|ubuntu1404|etc.]
dockrun() {
docker run -it geerlingguy/docker-"${1:-ubuntu1604}"-ansible /bin/bash
}
# Delete a given line number in the known_hosts file.
knownrm() {
re='^[0-9]+$'