วิธีที่จะสร้าง docker ภาพจากกำหนดเองชื่อแฟ้ม
cat DockerFile.debian.foo | docker build -t debian.foo -
docker สร้างคงไม่ใช้แคชเก็บข้อมูล
docker build --no-cache
docker ล้างแคช
# Rebuild the image
docker build --no-cache
# Pull the base images again and rebuild
docker build --no-cache --pull
# Also works with docker-compose
docker-compose build --no-cache
# If nothing from the above works for you, you could also prune everything
docker system to prune
สร้าง dockerfile
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
docker ล้างแคช
docker volume prune