Skip to content

attach non-formated volume #55

Description

@segator

pxctl v c test -r 3 --fs none docker run --volume-driver pxd -it --rm -v test:/dev/blockdevice ubuntu

error
Error response from daemon: error while mounting volume '/': Volume (Name: test Id: 99558319756929467 Path: /var/lib/osd/mounts/test) mount failed. Volume does not have a filesystem.

How I can use a block device directly from portworx inside a docker? If I attach manually before run docker, it works but it's not the idea
pxctl host attach test docker run -it --rm --device /dev/pxd/pxd<number>:/dev/blockdevice ubuntu <now the blockdevice it is accesible and works>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions