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

Help Request, docker cp lost parameter $PWD #268

Open
lakewatcher opened this issue Dec 29, 2022 · 2 comments
Open

Help Request, docker cp lost parameter $PWD #268

lakewatcher opened this issue Dec 29, 2022 · 2 comments

Comments

@lakewatcher
Copy link

When I was compiling apisix-base using apisix-tool, I encountered the following problems :

case:
Removing intermediate container 6b0e5e017b5a
---> ef848f93daf0
[Warning] One or more build-args [OPENRESTY] were not consumed
Successfully built ef848f93daf0
Successfully tagged apache/apisix-base-packaged-rpm:1.0.0
docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0
65e43220911c5e50fc65ac8b409a52496b7d765b04c8b2bffc030715cf22f394
docker cp output:/output
"docker cp" requires exactly 2 arguments.
See 'docker cp --help'.

Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Copy files/folders between a container and the local filesystem
make: *** [package-apisix-base-rpm] Error 1

exec:
sudo make package type=rpm app=apisix-base version=1.0.0 image_base=centos image_tag=7 buildx=False

I looked at the source code. Is there a problem here?
image

@lakewatcher lakewatcher changed the title Help Request, Help Request, docker cp lost parameter $PWD Dec 29, 2022
@lakewatcher
Copy link
Author

后续,
1.重新编译,依然报错。
2.直接把PWD改为路径,依然报错

手动运行
docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0
发现镜像无法运行,应该是打镜像有问题,但是没有错误信息

@SinCatGit
Copy link

SinCatGit commented May 7, 2023

${PWD} ->$(shell pwd) solved

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

No branches or pull requests

2 participants