Install Docker CKAN Product https://github.com/okfn/docker-ckan D:\docker_files\docker-ckan docker-compose build docker-compose up -d docker-compose down Dev docker-compose -f docker-compose.dev.yml build docker-compose -f docker-compose.dev.yml up
Góp nhặt của một kẻ mù công nghệ :p
Install Docker CKAN Product https://github.com/okfn/docker-ckan D:\docker_files\docker-ckan docker-compose build docker-compose up -d docker-compose down Dev docker-compose -f docker-compose.dev.yml build docker-compose -f docker-compose.dev.yml up
docker standard_init_linux.go:228: exec user process caused: no such file or directory Use notepad++, go to edit -> EOL conversion -> change from CRLF to LF. update: For VScode users: you can change CRLF to LF by clicking on CRLF present […]
Docker truncate logs truncate -s 0 /var/lib/docker/containers/**/*-json.log sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log" sudo truncate -s 0 `docker inspect –format='{{.LogPath}}' f7ea99211cf3c10fa86cfb78824485f20933b8cdfa35ca542c88c4b15310427e` sudo sh -c 'truncate -s 0 /var/lib/docker/containers/*/*-json.log'
Fix docker application stop when window goes to sleep A dockerized DOC application is running on Windows 10. After some time during which the computer has switched to sleep-mode, the application stopped working. The problem is that security tokens are […]
Docker container logs taking all my disk space Docker run Docker 1.8 has been released with a log rotation option. Adding: –log-opt max-size=5m –log-opt max-file=10 when the container is launched does the trick. You can learn more at: https://docs.docker.com/engine/admin/logging/overview/ docker-compose.yml version: […]
Docker Backup, Restore PostgreSQL Database Single Database PostgreSQL Backup Single Database sudo docker exec -t –user pg_username pg_container_name pg_dump -c -p 5432 -U pg_username "database_name" > "/path/on/your/machine/dump.sql" PostgreSQL Restore Single Database sudo docker exec -t –user pg_username pg_container_name psql -c […]
Backup Image to Docker Hub # Backup to hub docker commit -p dd63f4ee3263 soiqualang/min_dalle docker tag soiqualang/min_dalle:latest soiqualang/min_dalle docker push soiqualang/min_dalle:latest # Export container mình muốn (dùng id) docker save -o min_dalle.tar soiqualang/min_dalle
Docker Compose Can’t find a suitable configuration file in this directory Err Info ERROR: Can't find a suitable configuration file in this directory or any parent. Are you in the right directory? Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml Fix Err […]
Note về Docker-compose Nguồn: https://viblo.asia/p/docker-chua-biet-gi-den-biet-dung-phan-3-docker-compose-3P0lPm6p5ox 1. Mở đầu Xin chào các bạn, sau khi đi qua hai phần đầu của series: Docker – Chưa biết gì đến biết dùng, chúng ta đã tìm hiểu Docker, dockerfile, image, container … là gì và sử […]
Docker clear unused Docker images, volumes https://stackoverflow.com/questions/32723111/how-to-remove-old-and-unused-docker-images # unused Docker images sudo docker image prune -a # unused Docker volumes sudo docker volume prune
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 […]
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 […]
[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 […]
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 […]
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 […]