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:
2
.gitignore
vendored
Normal file → Executable file
2
.gitignore
vendored
Normal file → Executable file
@@ -1 +1 @@
|
||||
.obsidian
|
||||
.obsidian
|
||||
|
||||
0
devops/ansiblecli-cheat-sheet.md
Normal file → Executable file
0
devops/ansiblecli-cheat-sheet.md
Normal file → Executable file
9
devops/dockercli-cheat-sheet.md
Normal file → Executable file
9
devops/dockercli-cheat-sheet.md
Normal file → Executable 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
0
devops/dockerfile-cheat-sheet.md
Normal file → Executable file
0
devops/kubectl-cheat-sheet.md
Normal file → Executable file
0
devops/kubectl-cheat-sheet.md
Normal file → Executable file
0
devops/kubernetes-cheat-sheet.md
Normal file → Executable file
0
devops/kubernetes-cheat-sheet.md
Normal file → Executable file
0
devops/terraform-cheat-sheet.md
Normal file → Executable file
0
devops/terraform-cheat-sheet.md
Normal file → Executable file
0
devops/vagrant-cheat-sheet.md
Normal file → Executable file
0
devops/vagrant-cheat-sheet.md
Normal file → Executable file
0
devtools/git-cheat-sheet.md
Normal file → Executable file
0
devtools/git-cheat-sheet.md
Normal file → Executable file
0
devtools/vscode-cheat-sheet.md
Normal file → Executable file
0
devtools/vscode-cheat-sheet.md
Normal file → Executable file
0
devtools/windowsterminal-cheat-sheet.md
Normal file → Executable file
0
devtools/windowsterminal-cheat-sheet.md
Normal file → Executable file
0
devtools/wsl-cheat-sheet.md
Normal file → Executable file
0
devtools/wsl-cheat-sheet.md
Normal file → Executable file
0
infrastructure/grafana-cheat-sheet.md
Normal file → Executable file
0
infrastructure/grafana-cheat-sheet.md
Normal file → Executable file
0
infrastructure/prometheus-cheat-sheet.md
Normal file → Executable file
0
infrastructure/prometheus-cheat-sheet.md
Normal file → Executable file
0
infrastructure/tailscale-cheat-sheet.md
Normal file → Executable file
0
infrastructure/tailscale-cheat-sheet.md
Normal file → Executable file
0
infrastructure/teleport-cheat-sheet.md
Normal file → Executable file
0
infrastructure/teleport-cheat-sheet.md
Normal file → Executable file
0
infrastructure/wireguard-cheat-sheet.md
Normal file → Executable file
0
infrastructure/wireguard-cheat-sheet.md
Normal file → Executable file
0
linux/awk-cheat-sheet.md
Normal file → Executable file
0
linux/awk-cheat-sheet.md
Normal file → Executable file
0
linux/iptables-cheat-sheet.md
Normal file → Executable file
0
linux/iptables-cheat-sheet.md
Normal file → Executable file
0
linux/linuxbasics-cheat-sheets.md
Normal file → Executable file
0
linux/linuxbasics-cheat-sheets.md
Normal file → Executable file
0
linux/sed-cheat-sheet.md
Normal file → Executable file
0
linux/sed-cheat-sheet.md
Normal file → Executable file
Reference in New Issue
Block a user