私はDockerを理解しようとしていますが、私は非常にシンプルですDockerfile at OSXです。私はDocker Hello Wold - ociランタイムエラー
docker build -t simple .
のようにこのファイルの画像を構築しようとした際
FROM scratch
RUN echo "Hello world" > ~/helloworld.txt
CMD ["cat", "~/helloworld.txt"]
私は、ビルドプロセス中にエラーが発生します。
エラー出力
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM scratch
--->
Step 2 : RUN echo "Hello world" > ~/helloworld.txt
---> Running in fc772fd39d45
oci runtime error: exec: "/bin/sh": stat /bin/sh: no such file or directory
なぜ私はこの問題に直面しています上の任意のポインタ?
問題は、FROM debian:latestやFROM busybox:latestのように変更されています。 – BMitch
@BMitchありがとうございます。より視認性の高い答えをあなたのコメントに追加しました。私はアルパインを使用します。 – VonC