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

Failed to get CA_CONTAINER_ID #11

Open
makotonakai opened this issue Apr 5, 2023 · 0 comments
Open

Failed to get CA_CONTAINER_ID #11

makotonakai opened this issue Apr 5, 2023 · 0 comments

Comments

@makotonakai
Copy link
Collaborator

makotonakai commented Apr 5, 2023

When I executed ./create_secret_ca.sh, I failed to copy the secrets from the container to my local environment.

"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
"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

It turned out that this error was caused by the fact that export CA_CONTAINER_ID=$(docker ps -a --filter name=ca -q) returned more than one IDs, because it retrieved all the containers whose names include "ca".

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

1 participant