Setting Docker Image Caching
วิธีเปิดใช้งานและตั้งค่า image caching บน instance
Prerequisite
ต้องมี instance อยู่ใน project หากไม่มี ศึกษาได้จาก ขั้นตอนการ launch instance
ถ้า launch instance ด้วย distribution image ที่ทาง NIPA Cloud Space เตรียมไว้ให้ Docker Image Caching จะถูก enable ไว้แล้ว ไม่จำเป็นต้อง setting เพิ่ม
Instructions
สำหรับ image ที่ไม่ใช่ distribution image จะต้อง config registry mirror ไปที่ https://registry-cache.nipa.cloud
1. แก้ไข file docker config
Access เข้าแก้ไข file /etc/docker/daemon.json โดยใช้ command
และเพิ่มค่าดังนี้ลงไปใน file
จากนั้นออกจาก editor และ save file
2. Restart Docker service
Restart Docker service โดยใช้ command
3. ตรวจสอบผลการ config
ตรวจสอบว่า config เสร็จเรียบร้อยดีหรือไม่ โดยใช้ command
Last updated