-
Notifications
You must be signed in to change notification settings - Fork 552
Open
Labels
builderIssues and features associated with container image buildingIssues and features associated with container image buildingenhancementNew feature or requestNew feature or request
Description
Feature or enhancement request details
Dockerfile:
FROM alpine:latest
RUN --mount=type=bind,source=/etc,target=/workspace /workspace/tools/bootstrapmkdir -p tools
cat > /tools/bootstrap <<EOT
#! /bin/bash -ex
echo hello world > /etc/motd
EOT
chmod +x bootstrap
container build --file Dockerfile --tag test .output today:
% ./build.sh
+ container build --file Dockerfile --tag test .
[+] Building 1.4s (5/5) FINISHED
=> [resolver] fetching image...docker.io/library/alpine:latest 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 25B 0.0s
=> oci-layout://docker.io/library/alpine:latest@sha256:51183f2cfa6320055da30872f211093f9ff1d3cf06f39a0bdb212314c5dc7375 0.7s
=> => resolve docker.io/library/alpine:latest@sha256:51183f2cfa6320055da30872f211093f9ff1d3cf06f39a0bdb212314c5dc7375 0.3s
=> => sha256:0bd713040ebbdef7247f70b0753f8fb2f410e8eb358e95af409a8412b9847d78 4.20MB / 4.20MB 0.1s
=> => extracting sha256:0bd713040ebbdef7247f70b0753f8fb2f410e8eb358e95af409a8412b9847d78 0.1s
=> ERROR [linux/arm64 stage-0 1/2] RUN --mount=type=bind,source=/etc,target=/workspace /workspace/tools/bootstrap 0.2s
------
> [linux/arm64 stage-0 1/2] RUN --mount=type=bind,source=/etc,target=/workspace /workspace/tools/bootstrap:
0.144 /bin/sh: /workspace/tools/bootstrap: not found
------
Error: unknown (2): failed to solve: process "/bin/sh -c /workspace/tools/bootstrap" did not complete successfully: exit code: 127
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
builderIssues and features associated with container image buildingIssues and features associated with container image buildingenhancementNew feature or requestNew feature or request