1
0
mirror of https://github.com/xcad2k/cheat-sheets.git synced 2022-05-05 20:20:37 +03:00

docker update

This commit is contained in:
xcad2k
2021-09-14 11:09:17 +02:00
parent 3a7d34e751
commit f948f89d12
21 changed files with 10 additions and 1 deletions

2
.gitignore vendored Normal file → Executable file
View File

@@ -1 +1 @@
.obsidian
.obsidian

0
devops/ansiblecli-cheat-sheet.md Normal file → Executable file
View File

9
devops/dockercli-cheat-sheet.md Normal file → Executable file
View File

@@ -63,5 +63,14 @@ COMMAND | DESCRIPTION
COMMAND | DESCRIPTION
---|---
`docker volumes` | List all volumes
`docker volume create VOLUME` | Create a volume
`docker volume inspect VOLUME` | Show information (json formatted)
`docker volume rm VOLUME` | Destroy a volume
### Backup a container
Backup docker data from inside container volumes and package it in a tarball archive.
`docker run --rm --volumes-from CONTAINER -v $(pwd):/backup busybox tar cvf /backup/backup.tar CONTAINERPATH`
### Restore container from backup
Restore the volume with a tarball archive.
`docker run --rm --volumes-from dbstore2 -v $(pwd):/backup busybox bash -c "cd CONTAINERPATH && tar xvf /backup/backup.tar --strip 1"`

0
devops/dockerfile-cheat-sheet.md Normal file → Executable file
View File

0
devops/kubectl-cheat-sheet.md Normal file → Executable file
View File

0
devops/kubernetes-cheat-sheet.md Normal file → Executable file
View File

0
devops/terraform-cheat-sheet.md Normal file → Executable file
View File

0
devops/vagrant-cheat-sheet.md Normal file → Executable file
View File

0
devtools/git-cheat-sheet.md Normal file → Executable file
View File

0
devtools/vscode-cheat-sheet.md Normal file → Executable file
View File

0
devtools/windowsterminal-cheat-sheet.md Normal file → Executable file
View File

0
devtools/wsl-cheat-sheet.md Normal file → Executable file
View File

0
infrastructure/grafana-cheat-sheet.md Normal file → Executable file
View File

0
infrastructure/prometheus-cheat-sheet.md Normal file → Executable file
View File

0
infrastructure/tailscale-cheat-sheet.md Normal file → Executable file
View File

0
infrastructure/teleport-cheat-sheet.md Normal file → Executable file
View File

0
infrastructure/wireguard-cheat-sheet.md Normal file → Executable file
View File

0
linux/awk-cheat-sheet.md Normal file → Executable file
View File

0
linux/iptables-cheat-sheet.md Normal file → Executable file
View File

0
linux/linuxbasics-cheat-sheets.md Normal file → Executable file
View File

0
linux/sed-cheat-sheet.md Normal file → Executable file
View File