Skip to content

docker cp returns “no space left on device” if entire host filesystem is mounted #38995

@arindamchoudhury

Description

@arindamchoudhury

This is the definition of the docker container:

version: '2'

services:
    alpine-test:
       container_name: alpine-test
       image: alpine:latest
       command: tail -F /dev/null
       volumes:
           - /:/rootfs

If I try to copy a file from this container, eventually it returns "Error response from daemon: no space left on device" error:

# docker cp alpine-test:/etc/hostname /tmp/
# docker cp alpine-test:/etc/hostname /tmp/
# docker cp alpine-test:/etc/hostname /tmp/
Error response from daemon: no space left on device
#

I am failed to find any workaround or explanation of this.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions