Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COPY from URL not supported as per documentation #1703

Open
hmoffatt opened this issue Oct 22, 2023 · 2 comments
Open

COPY from URL not supported as per documentation #1703

hmoffatt opened this issue Oct 22, 2023 · 2 comments

Comments

@hmoffatt
Copy link

The Containerfile documentation (https://github.com/containers/common/blob/main/docs/Containerfile.5.md) says that you can use a URL with COPY, but it does not work, with buildah 1.31 at least:

The COPY instruction copies new files from and adds them to the filesystem of the container at path . The must be the path to a file or directory relative to the source directory that is being built (the context of the build) or a remote file URL.

Error: building at STEP "COPY --chmod=0755 https://... /some/path": source can't be a URL for COPY
@rhatdan
Copy link
Member

rhatdan commented Oct 22, 2023

Is this valid with Docker?

@hmoffatt
Copy link
Author

No, it doesn't work in Docker either (and the instructions don't say it should - https://docs.docker.com/engine/reference/builder/#copy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants