aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-06-06 00:01:22 -0400
committertdro <tdro@users.noreply.github.com>2020-06-06 00:01:22 -0400
commit00c106537706cc0ef4cf4ecdaf47d77eb84f603b (patch)
treea3a91fccb4f17ec3b03d07aaadbbe45561edf549 /.bashrc
parent9ffa17c573caeaf44aaf9e0ca5f3b60c4171fae8 (diff)
downloaddotfiles-00c106537706cc0ef4cf4ecdaf47d77eb84f603b.tar.gz
dotfiles-00c106537706cc0ef4cf4ecdaf47d77eb84f603b.tar.bz2
dotfiles-00c106537706cc0ef4cf4ecdaf47d77eb84f603b.zip
.bashrc: Update docker rootfs helper
Add tar filetype
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 1820887..e102e29 100644
--- a/.bashrc
+++ b/.bashrc
@@ -115,4 +115,4 @@ lxc-destroy() { for container in "$@"; do $(type -P lxc-destroy) -n "$container"
history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" > /tmp/.bash_history.tmp && mv -f /tmp/.bash_history.tmp "$HOME/.bash_history"; }
# extract docker container as rootfs
-docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export -o "$2" "$id" && docker container rm "$id"; }
+docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export "$id" -o "$2.tar" && docker container rm "$id"; }