Usage:
python delete_docker_image.py 192.168.2.1:5000/hello-world:latest --delete-layersUsage:
python delete_docker_image.py 192.168.2.1:5000/hello-world:latest --delete-layers| # coding: utf-8 | |
| # This patched `Popen` class | |
| # adds support for Unicode commandline on Windows platform. | |
| # issue: https://bugs.python.org/issue19264 | |
| import os | |
| import ctypes | |
| import subprocess | |
| import _subprocess | |
| from ctypes import ( |
| #cloud-config | |
| runcmd: | |
| - curl -fsSL https://get.docker.com | sh | |
| - curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| - chmod +x /usr/local/bin/docker-compose | |
| - ln -s /usr/local/bin/docker-compose /usr/local/bin/dc | |
| - apt-get install -y zsh git | |
| groups: |