Build Manage Images for Hosts!
Clivern opened this issue · 2 comments
Clivern commented
- Pull Docker Images.
- List Docker Images.
- Delete Docker Images.
- Prune Docker Images.
- Command To Manage Hosts Images.
- Build Docker Images.
- Tag Docker Images.
- View Docker Image.
Clivern commented
from app.modules.core.task import Task as Task_Core
# Task_Core().delay("task name", {parameters dict}, user id)
Task_Core().delay("pull_image", {"host_id": 1, "repository": "ubuntu:18.04"}, 1)
Clivern commented
python3 manage.py host exec pull_image host_id=5 repository=ubuntu tag=18.04
python3 manage.py host exec list_images host_id=5
python3 manage.py host exec prune_unused_images host_id=5
python3 manage.py host exec prune_all_unused_images host_id=5
python3 manage.py host exec remove_image_by_name host_id=5 repository=kraven tag=1.0.0
python3 manage.py host exec remove_image_by_id host_id=5 image_id=sha256:16508e5c265dcb5c05017a2a8a8228ae12b7b56b2cda0197ed5411bda200a961 force=True
python3 manage.py host exec get_image_by_id host_id=5 image_id=sha256:16508e5c265dcb5c05017a2a8a8228ae12b7b56b2cda0197ed5411bda200a961
python3 manage.py host exec tag_image_by_id host_id=5 image_id=sha256:16508e5c265dcb5c05017a2a8a8228ae12b7b56b2cda0197ed5411bda200a961 repository=kraven tag=1.0.0
python3 manage.py host exec build_image host_id=5 dockerfile=./sample tag=mongo:2.0.0