Skip to content
This repository was archived by the owner on Jan 25, 2018. It is now read-only.
This repository was archived by the owner on Jan 25, 2018. It is now read-only.

mke2fs throws error #8

@adamgoose

Description

@adamgoose

Running the docker volume create command works fine, and I see the disk in my GCP Console. However, once I try to use the volume, I get the following error:

root@rancher-hosts-0n4k:/dev/disk/by-id# docker run -it -v volume-test:/foobar --volume-driver=gce ubuntu:14.04
docker: Error response from daemon: VolumeDriver.Mount: mkfs.ext4 failed, arguments: ["nsenter" "--mount=/rootfs/proc/1/ns/mnt" "--" "mkfs.ext4" "/dev/disk/by-id/google-docker-volume-volume-test"]
output: mke2fs 1.42.9 (4-Feb-2014)
/dev/disk/by-id/google-docker-volume-volume-test is entire device, not just one partition!
Proceed anyway? (y,n).

The prompt is not interactive, both with and without the -d docker run flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions