docker backup

https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes $ docker run --rm --volumes-from dbstore -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /dbdata ??? Real Demo Example: mongo cantainer mongo: image: mongo #restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example volumes: - alldata:/data/db networks: - fastdev volumes is /data/db docker running name is testbackup_mongo_1_1c9e49740f2e (this use docker ps check your run time docker name. Don’t copy) run $ docker run --rm --volumes-from testbackup_mongo_1_1c9e49740f2e -v $(pwd):/backup ubuntu tar cvf /backup/backup.

繼續閱讀

acme let's encrypt

renew manually dns acme.sh --issue -d *.oooxxx.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please Cer Key /root cp ~/.acme.sh/\*.oooxxx.com/\*.oooxxx.com.cer wildcardoooxxx.cer cp ~/.acme.sh/\*.oooxxx.com/\*.oooxxx.com.cer wildcardoooxxx.key

繼續閱讀

https://raymii.org/s/tutorials/Proxmox_VE_One_Public_IP.html 實例 https://www.facebook.com/groups/pve.tw/permalink/1225387670963125/ 楊凱麟 以下也是我目前interfaces的設定 其中1.2.3.x為真實IP 1.2.3.Y為IDC提供的gateway 設置完後再將區網設定填上10.0.0.X (X=0~255) 即可上網,連外網的公共IP會是1.2.3.X -—network configuration—- auto lo iface lo inet loopback iface eno1 inet manual auto vmbr0 iface vmbr0 inet static address 1.2.3.X netmask 255.255.255.248 network 1.2.3.0 broadcast 1.2.3.255 gateway 1.2.3.Y bridge_ports eno1 bridge_stp off bridge_fd 0 auto vmbr1 iface vmbr1 inet static address 10.0.0.254 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s ‘10.

繼續閱讀

FireHOL iptables

FireHOL is a language (and a program to run it) which builds secure, stateful firewalls from easy to understand, human-readable configurations. The configurations stay readable even for very complex setups.

繼續閱讀

https://www.portainer.io/ docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer 今天發現一個docker gui管理工具 https://www.portainer.io/ 很符合簡單管理 先用docker-machine開一台機器,直接就是docker ready的VM ,VM可以是virtualbox等等 然後登入後,直接用 啟動 portainer的docker,管理這台機器上的docker 有圖形化介面,可以看到每一個docker使用情況,又可以直接登入到docker內,web terminal,這樣就有符合實際使用情況了 docker資料有用volume寫到本機vm內,再把整台vm打包備份的話,資料又不容易不見

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan