-
Backing up your docker volumes
Backing up your docker volumes https://github.com/soiqualang/docker-backup-volume How to backup your volume backup-volume.sh will create a new running docker container and mount the volume to the container. A docker cp will be run and the contents of the volume will be saved into a location determined by: $prefix/$volume/<timestamp>_$volume.tar.gz An example to run the command is the following: backup-volume.sh -v <volume_name> -p <prefix> backup-volume.sh ```bash #!/usr/bin/env bash # creates a backup of the docker volume while [ $# -gt 0 ]; do case "$1" in -v|-volume|--volume) volume="$2" ;; -p|-prefix|--prefix) prefix="$2" ;; -h|-help|--help) printf "--volume the name of the volume\n" printf "--mount the mount point of the volume\n" exit 1 ;; *) printf "***************************\n" printf "*…
-
Awesome Docker Compose
Awesome Docker Compose Danh sách các Docker Compose phổ biến Just pull and run =)) https://github.com/docker/awesome-compose Awesome Compose A curated list of Docker Compose samples. These samples provide a starting point for how to integrate different services using a Compose file and to manage their deployment with Docker Compose. Note: The following samples are intended for use in local development environments such as project setups, tinkering with software stacks, etc. These samples must not be deployed in production environments. Contents Samples of Docker Compose applications with multiple integrated services. Single service samples. Basic setups for different platforms (not production ready - useful for personal use). Samples of Docker Compose applications…
-
[Backup Docker] Saving Images and Containers as Tar Files for Sharing
[Backup Docker] Saving Images and Containers as Tar Files for Sharing Saving Images and Containers as Tar Files for Sharing Imagine a scenario where you have built Docker images and containers that you would be interested to keep and share it with your other collaborators or colleagues. The below methods shall help you achieve it. Four basic Docker CLI comes into action: The docker export - Export a container's filesystem as a tar archive The docker import - Import the contents from a tarball to create a filesystem image The docker save - Save one or more images to a tar archive (streamed to STDOUT by default) The docker load - Load an image from a tar archive…
-
Cài Docker Compose trên Ubuntu (Linux)
Cài Docker Compose trên Ubuntu (Linux) Lỗi Unable to locate package docker-compose-plugin Ban đầu mình cài với lệnh sudo apt install docker-compose-plugin, tuy nhiên bị lỗi sau: Unable to locate package docker-compose-plugin haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,570 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,810 kB] Fetched 4,632 kB in 7s (667 kB/s) Reading package lists... Done haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt-get install docker-compose-plugin Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package docker-compose-plugin haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt install docker-compose-plugin…
-
Fix Docker WSL 2 installation is incomplete
Fix Docker WSL 2 installation is incomplete. Error info WSL 2 installation is incomplete. The WSL 2 Linux kernel is now installed using a separate MSI update package. Please click the link and follow the instructions to install the kernel update: https://aka.ms/wsl2kernel. Press Restart after installing the Linux kernel. Download WSL2 update file Download WSL2 Linux kernel update package for x64 machines Mirror Link: https://1drv.ms/u/s!AhouGCUE4BeHuItGVjA18sPeYIxPbA?e=k8DYad Install WSL2 Linux kernel update package for x64 machines Results After fixing Docker WSL 2 installation is incomplete. References https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
-
Cấu hình Docker WSL2 – chuyển vị trí lưu docker sang ổ đĩa khác
Cấu hình Docker WSL2 - chuyển vị trí lưu docker sang ổ đĩa khác # Ngắt Docker với Data của nó wsl --unregister docker-desktop-data # Import Docker data qua trị trí mới wsl --import docker-desktop-data D:\docker_files\docker_desktop_data\wsl_data "C:\Program Files\Docker\Docker\resources\wsl\wsl-data.tar" --version=2 https://stackoverflow.com/questions/62441307/how-can-i-change-the-location-of-docker-images-when-using-docker-desktop-on-wsl2 Tham khảo thêm một số lệnh khác https://www.youtube.com/watch?v=AyEw7JsHt9I D:\docker_files\docker_desktop Xem danh sach WSL wsl -l -v Tat het WSL wsl --shutdown Export WSL (docker data) wsl --export docker-desktop-data D:\docker_files\docker_desktop\docker_desktop_backup.tar Remove docker data mac dinh wsl --unregister docker-desktop-data Import back docker data ở ổ đĩa khác wsl --import docker-desktop-data D:\docker_files\docker_desktop\ddesktop D:\docker_files\docker_desktop\docker_desktop_backup.tar
-
Cấu hình Docker Hyper-V – chuyển vị trí lưu docker sang ổ đĩa khác
Cấu hình Docker Hyper-V - chuyển vị trí lưu docker sang ổ đĩa khác Vào Hyper-V setting Chọn lại đường dẫn lưu docker đến thư mục khác Notes riêng của tôi C:\Users\Public\Documents\Hyper-V\Virtual hard disks E:\WebKCN\Hyper-V\Virtual Hard Disks C:\ProgramData\Microsoft\Windows\Hyper-V
-
Docker Export và Import Container
Docker Export và Import Container Docker liệt kê các container docker container ls Docker export container # Tạo một bản backup images từ container hiện tại docker commit -p 99a148f1a272 my_backup # Export container mình muốn (dùng id) docker save -o my_backup.tar my_backup Docker Import/Load Container # Restore docker load -i ~/my_backup.tar Tham khảo https://www.geeksforgeeks.org/backing-up-a-docker-container/ https://www.geeksforgeeks.org/restoring-a-docker-container/
-
Docker image in production – câu chuyện 1GB hay 100MB
-
GitHub Packages (github docker)
-
Cách cài Docker trên Linux (2021)
Cách cài Docker trên Linux (2021)
-
Cách truy cập vào docker shell
-
T-Youtube – Tool download video, mp3 từ Youtube
Đây là cái tool đầu tiên mình làm mà có build ra nền tảng Docker https://github.com/soiqualang/TYoutube/blob/master/README.md https://hub.docker.com/r/soiqualang/tyoutube
-
Tạo ứng dụng Docker đầu tiên – Build Docker by soiqualang
-
Fix lỗi The Windows Subsystem for Linux optional component is not enabled