Build-ৰ সময়ত package download কৰিবলৈ Dockerfile-ৰ ENV-ত অস্থায়ী route সংৰক্ষণ কৰাৰ সলনি Docker-ৰ predefined proxy input ব্যৱহাৰ কৰক। POSIX invocation-এ এইটো দিব পাৰে:

HTTP_PROXY=http://203.0.113.10:8080 \
HTTPS_PROXY=http://203.0.113.10:8080 \
docker build --build-arg HTTP_PROXY --build-arg HTTPS_PROXY .

Documentation endpoint সলনি কৰক। --build-arg নামৰ পিছত value নিদিলে এই invocation-ৰ environment-ৰ পৰা লোৱা হয়। এই predefined input-ৰ বাবে মিল থকা ARG declaration প্ৰয়োজন নহয়।

Docker-এ default-ভাৱে এই proxy argument-সমূহ build-cache handling আৰু docker history-ৰ পৰা বাদ দিয়ে। Dockerfile-ত explicit reference কৰিলে সেই আচৰণ সলনি হয়; আন build-argument উদাহৰণে কৰিছে বুলি declaration যোগ নকৰিব।

Process-এ value লাভ কৰিয়েই থাকে। Authenticated URL এটা printed environment, log, copied config বা পিছৰ image operation-ৰ জৰিয়তে ফাঁহি যাব পাৰে, যদিও এটা history view-এ তাক লুকুৱায়। Dockerfile-ৰ ENV-এ route-ক final image environment-ৰ অংশ কৰে আৰু build-only proxy-ক প্ৰতিটো container-ৰ dependency কৰিব পাৰে।

Command-এ sensitive material বিচাৰিলে BuildKit secret mount-এ build-time secret interface দিয়ে। Credential-ক সেই operation-ত সীমাবদ্ধ ৰাখক; mount print নকৰিব আৰু তাৰ content image layer-ত copy নকৰিব।

এই build input-সমূহে daemon-এ আগতে কৰা registry pull অথবা unreachable remote builder-ৰ host route কনফিগাৰ নকৰে। পিছত intended final image আৰু application config-ত persistent proxy value আছে নে চাওক।

সম্পৰ্কিত প্ৰবন্ধ