問題タブ [buildx]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
docker - Can I docker pull directly into local registry without re-tag and push?
I am trying to build a multi-GB docker image for machine learning using Python in Github Actions running with buildx
.
To test a speedup of the builds I wanted to split the application Dockerfile into "application" image that's coming from (FROM
) a "packages" image so that if Python requirements haven't changed I wouldn't have to build it every time (i.e. a sort of a cache layer).
My Github Actions workflow goes with something like this:
- Determine if there exists a "packages" image with the same
requirements.txt
file hash tag. - If not, build this "packages" image, tag it with a hash of the
requirements.txt
file and push the image to AWS ECR as well as to a local registry, skip to 4. - If yes, download the "packages" image and push it to a local registry.
- Use local registry "packages" image as the
FROM
in a multi-stage build of the "application" image.
Step 3 is supposed to speed up the builds but since I have to go through a local registry in order for step 4 to work, I lose all leverage I gained.
Can I docker pull
an image directly into a local registry?
Right now, going through docker tag && docker push
into the local registry takes extra minutes.
Any help is appreciated.
docker - ベース イメージが異なる Docker buildx
amd64
および Nvidial4t
プラットフォーム用のイメージをビルドしたいと考えています。今、私は基本イメージ名amd64/debian:buster-slim
をnvcr.io/nvidia/l4t-base:r32.6.1
myに渡しDockerfile
ます。次に、シェル スクリプトを実行してdocker build
、異なる基本イメージ名を--build-arg
.
docker buildx
非常に興味深いと思われるものについて読んだことがあります。ただし、ターゲット プラットフォーム用に異なるベース イメージを定義する方法がわかりません。
これは可能ですか?