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

Warn user to upgrade ancient Docker ( "docker cp -a") not working. #9085

Closed
ghost opened this issue Aug 25, 2020 · 10 comments
Closed

Warn user to upgrade ancient Docker ( "docker cp -a") not working. #9085

ghost opened this issue Aug 25, 2020 · 10 comments
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@ghost
Copy link

ghost commented Aug 25, 2020

πŸ˜„ minikube v1.12.3 on Debian 9.13
✨ Using the docker driver based on user configuration

❗ 'docker' driver reported a issue that could affect the performance.
πŸ’‘ Suggestion: enable overlayfs kernel module on your Linux

πŸ‘ Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
πŸ’Ύ Downloading Kubernetes v1.18.3 preload ...
> preloaded-images-k8s-v5-v1.18.3-docker-overlay2-amd64.tar.lz4: 510.91 MiB
πŸ”₯ Creating docker container (CPUs=2, Memory=8000MB) ...
βœ‹ Stopping node "minikube" ...
πŸ›‘ Powering off "minikube" via SSH ...
πŸ”₯ Deleting "minikube" in docker ...
🀦 StartHost failed, but will try again: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset852410486 into minikube:/home/docker/.ssh/authorized_keys, output: unknown shorthand flag: 'a' in -a
See 'docker cp --help'.
: exit status 125
πŸ”₯ Creating docker container (CPUs=2, Memory=8000MB) ...
😿 Failed to start docker container. "minikube start" may fix it: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset160545117 into minikube:/home/docker/.ssh/authorized_keys, output: unknown shorthand flag: 'a' in -a
See 'docker cp --help'.
: exit status 125

πŸ’£ error provisioning host: Failed to start host: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset160545117 into minikube:/home/docker/.ssh/authorized_keys, output: unknown shorthand flag: 'a' in -a
See 'docker cp --help'.
: exit status 125

😿 minikube is exiting due to an error. If the above message is not useful, open an issue:
πŸ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

go version go1.15 linux/amd64

kubectl
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-13T16:12:48Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server 192.168.0.103:6443 was refused - did you specify the right host or port?

@ghost
Copy link
Author

ghost commented Aug 25, 2020

Minikube started after updrade Docker version to 19.03.8.

@medyagh
Copy link
Member

medyagh commented Aug 31, 2020

That is very interesting,

creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset852410486 into minikube:/home/docker/.ssh/authorized_keys, output: unknown shorthand flag: 'a' in -a
See 'docker cp --help'.

seems like docker command we were trying to run didn't exist

@porytskyi do you mind sharing
full output of
"docker version"

and what was your docker version before?

@medyagh medyagh added the kind/bug Categorizes issue or PR as related to a bug. label Aug 31, 2020
@medyagh
Copy link
Member

medyagh commented Aug 31, 2020

@porytskyi do you mind also sharing

docker cp --help

@medyagh medyagh added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Aug 31, 2020
@medyagh medyagh changed the title Failed minikube start docker cp flag: 'a' in -a Aug 31, 2020
@afbjorklund
Copy link
Collaborator

Same as #9075 - related to #9077

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container os/linux labels Sep 1, 2020
@medyagh
Copy link
Member

medyagh commented Sep 2, 2020

could we try docker cp without -a ? it fails?

@tstromberg
Copy link
Contributor

minikube started after updrade Docker version to 19.03.8 - I wonder what version was running before.

I'll note the -a flag does not exist in docker.io_1.13.1-0ubuntu6_amd64. It does seem like a very useful flag though. At a minimum this could use an actionable error message to ask for an upgrade.

@tstromberg tstromberg added needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. and removed priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. kind/bug Categorizes issue or PR as related to a bug. labels Sep 2, 2020
@ghost
Copy link
Author

ghost commented Sep 5, 2020

@tstromberg

The previous version was docker-ce 18.06.0 ~ ce ~ 3-0 ~ debian.
More information here: https://docs.docker.com/engine/install/debian in the Install Docker Engine section, step 2.

@ghost
Copy link
Author

ghost commented Sep 5, 2020

@medyagh
Please note that I am using Docker version 19.03.8. Everything is working now.

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

Use '-' as the source to read a tar archive from stdin
and extract it to a directory destination in a container.
Use '-' as the destination to stream a tar archive of a
container source to stdout.

Options:
  -a, --archive       Archive mode (copy all uid/gid information)
  -L, --follow-link   Always follow symbol link in SRC_PATH

@medyagh medyagh changed the title docker cp flag: 'a' in -a Warn user to upgrade ancient Docker ( "docker cp -a") not working. Sep 30, 2020
@medyagh medyagh added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. and removed needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. labels Sep 30, 2020
@priyawadhwa priyawadhwa added the kind/support Categorizes issue or PR as a support question. label Oct 5, 2020
@sharifelgamal sharifelgamal added kind/bug Categorizes issue or PR as related to a bug. needs-solution-message Issues where where offering a solution for an error would be helpful and removed kind/support Categorizes issue or PR as a support question. labels Nov 11, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 9, 2021
@ilya-zuyev
Copy link
Contributor

Going to close this issue. The minimum supported docker version is 18.9 and it does have -a arg for cp command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

8 participants