Skip to content

cp failure uses confusing error message #3197

Closed

Description

@apostasie

Description

Destination of the copy being read-only:

nerdctl cp buildkitd:/usr/bin/buildctl .
/usr/bin/tar: buildctl: Cannot open: Read-only file system
/usr/bin/tar: Exiting with failure status due to previous errors
FATA[0000] could not find container: buildkitd, with error: failed to wait [/usr/bin/tar -x --no-same-owner -f -]: exit status 2

Of course the container buildkitd is here and fine.

We should clean-up this above and provide a helpful message to the user instead.

Good first issue.

Steps to reproduce the issue

na

Describe the results you received and expected

na

What version of nerdctl are you using?

main

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Activity

  1. added
    bug
    and removed
    kind/unconfirmed-bug-claim
    on Aug 6, 2024
  2. changed the title [-]nerdctl cp failure uses confusing error message[/-] [+]cp failure uses confusing error message[/+] on Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions