You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
853 B

6 years ago
6 years ago
6 years ago
6 years ago
  1. # tml-in-docker #
  2. Dockerized TML Web System
  3. 安裝Docker
  4. $ wget -qO- https://get.docker.com/ | sh
  5. $ sudo usermod -aG docker $(whoami)
  6. $ sudo systemctl enable docker.service
  7. $ sudo systemctl start docker.service
  8. 安裝Docker Compose
  9. $ sudo yum install epel-release
  10. $ sudo yum install -y python-pip
  11. $ sudo pip install docker-compose
  12. ### 由Private register移除Docker Image
  13. ```bash
  14. registry='localhost:5000'
  15. name='my-image'
  16. curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
  17. curl -sSL -I \
  18. -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
  19. "http://${registry}/v2/${name}/manifests/$(
  20. curl -sSL "http://${registry}/v2/${name}/tags/list" | jq -r '.tags[0]'
  21. )" \
  22. | awk '$1 == "Docker-Content-Digest:" { print $2 }' \
  23. | tr -d $'\r' \
  24. )"
  25. ```