-
i've build the image using:
The error i am getting is non-informational and can't really find in the docs what would be wrong. I am using Rancher desktop (latest version installed yesterday), hence the nerdctl i am using is from there. Anyone could point me to a working example to get it running? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Same issue here |
Beta Was this translation helpful? Give feedback.
-
I haven't replicated your issue and also something seems odd, your getting-started image has 450MBish.. is that a custom image? Here's some results from my test (Win 10PRO 2H20) -- used a simple nginx server image: PS C:\Users\everton.peres\sample-test-app> nerdctl build -f .\Dockerfile -t test .
[+] Building 89.1s (14/14) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 227B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:latest 1.0s
=> [internal] load metadata for docker.io/library/node:14.18-alpine3.14 0.9s
=> [stage-0 1/6] FROM docker.io/library/node:14.18-alpine3.14@sha256:94aade79f5f1c418205d85924708360c60d6 4.2s
=> => resolve docker.io/library/node:14.18-alpine3.14@sha256:94aade79f5f1c418205d85924708360c60d627e2272f 0.1s
=> => sha256:8d19c7b532d498095829b665d2c541f9a04cc3bed80978a2412eb0c45ca20e61 36.68MB / 36.68MB 86.7s
=> => extracting sha256:97518928ae5f3d52d4164b314a7e73654eb686ecd8aafa0b79acd980773a740d 0.4s
=> => extracting sha256:8d19c7b532d498095829b665d2c541f9a04cc3bed80978a2412eb0c45ca20e61 2.9s
=> => extracting sha256:e12099b9f251c343defeee0c7d9c907f3cb9084153477efc827a5a1f763f17da 0.2s
=> => extracting sha256:58fb97b6952fad21ee9052f1641b6d90e3520a1dc7e5bda42d5d7558c8943437 0.1s
=> [stage-1 1/2] FROM docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78 7.0s
=> => resolve docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e 0.1s
=> => sha256:b559bad762bec166fd028483dd2a03f086d363ee827d8c98b7268112c508665a 1.39kB / 1.39kB 86.3s
=> => sha256:55de5851019b8f65ed6e28120c6300e35e556689d021e4b3411c7f4e90a9704b 666B / 666B 86.2s
=> => sha256:78091884b7bea0fa918527207924e9993bcc21bf7f1c9687da40042ceca31ac9 601B / 601B 86.1s
=> => sha256:1ae07ab881bd848493ad54c2ba32017f94d1d8dbfd0ba41b618f17e80f834a0f 25.35MB / 25.35MB 86.1s
=> => sha256:5eb5b503b37671af16371272f9c5313a3e82f1d0756e14506704489ad9900803 31.37MB / 31.37MB 85.8s
=> => extracting sha256:5eb5b503b37671af16371272f9c5313a3e82f1d0756e14506704489ad9900803 2.0s
=> => extracting sha256:1ae07ab881bd848493ad54c2ba32017f94d1d8dbfd0ba41b618f17e80f834a0f 3.1s
=> => extracting sha256:78091884b7bea0fa918527207924e9993bcc21bf7f1c9687da40042ceca31ac9 0.1s
=> => extracting sha256:091c283c6a66ad0edd2ab84cb10edacc00a1a7bc5277f5365c0d5c5457a75aff 0.1s
=> => extracting sha256:55de5851019b8f65ed6e28120c6300e35e556689d021e4b3411c7f4e90a9704b 0.1s
=> => extracting sha256:b559bad762bec166fd028483dd2a03f086d363ee827d8c98b7268112c508665a 0.1s
=> [internal] load build context 0.9s
=> => transferring context: 2.06MB 0.6s
=> [stage-0 2/6] WORKDIR /app 2.9s
=> [stage-0 3/6] COPY package*.json ./ 0.3s
=> [stage-0 4/6] RUN npm install 63.9s
=> [stage-0 5/6] COPY . . 0.6s
=> [stage-0 6/6] RUN npm run build 10.4s
=> [stage-1 2/2] COPY --from=0 /app/build /usr/share/nginx/html 0.1s
=> exporting to oci image format 3.7s
=> => exporting layers 0.8s
=> => exporting manifest sha256:ebf788c754c19e659c24871ae5cb5e09d75949a3f29a99cd0654a9552e6f644b 0.0s
=> => exporting config sha256:e636bf832a2bac8e7a89f723ed7a80a741e4cd2f922a62855a8497b5258bd547 0.0s
=> => sending tarball 2.5s
unpacking docker.io/library/test:latest (sha256:ebf788c754c19e659c24871ae5cb5e09d75949a3f29a99cd0654a9552e6f644b)...done
PS C:\Users\everton.peres\sample-test-app>
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE
hello-world latest 507ecde44b8e 7 minutes ago linux/amd64 20.0 KiB
test latest ebf788c754c1 5 minutes ago linux/amd64 149.7 MiB
PS C:\Users\everton.peres\sample-test-app> nerdctl run test
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2022/01/28 21:07:37 [notice] 1#1: using the "epoll" event method
2022/01/28 21:07:37 [notice] 1#1: nginx/1.21.6
2022/01/28 21:07:37 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2022/01/28 21:07:37 [notice] 1#1: OS: Linux 5.10.16.3-microsoft-standard-WSL2
2022/01/28 21:07:37 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1024:1024
2022/01/28 21:07:37 [notice] 1#1: start worker processes
2022/01/28 21:07:37 [notice] 1#1: start worker process 32
2022/01/28 21:07:37 [notice] 1#1: start worker process 33
2022/01/28 21:07:37 [notice] 1#1: start worker process 34
2022/01/28 21:07:37 [notice] 1#1: start worker process 35 |
Beta Was this translation helpful? Give feedback.
-
i've found the issue #819 just running nerdctl within a command prompt in non-administrator mode fixes the issue.. |
Beta Was this translation helpful? Give feedback.
i've found the issue #819
just running nerdctl within a command prompt in non-administrator mode fixes the issue..