ClusterHQ / mesos-module-flocker

Mesos isolator for Flocker volumes
51 stars 11 forks source link

The execution of this command is wrong. #14

Open chadiandianwenrou opened 8 years ago

chadiandianwenrou commented 8 years ago

[root@slave-1 ~]# docker run -it --env MESOS_ROOT=/mesos -v ./build:/build containersol/mesos-modules-dev:14.04 sh -c 'cd /build ; cmake . ; make ; ./build/test_flockerisolator' docker: Error response from daemon: create ./build: volume name invalid: "./build" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9.-]" are allowed. See 'docker run --help'.

rorysavage77 commented 8 years ago

Yep the execution is wrong. There are multiple issues here

1.You can not use "./" in a host volume mapping 2.The instructions say to remove the build directory, and then create it. They fail to mention what needs to be populated in this build directory.

I suspect this is the result of somebody quick notes and they inadvertently left out some additional steps.

rm -rf^C rm -rf ./build ./bin mkdir build

(With the exact instructions): docker run -it --env MESOS_ROOT=/mesos -v ./build:/build containersol/mesos-modules-dev:14.04 sh -c 'cd /build ; cmake . ; make ; ./build/test_flockerisolator' docker: Error response from daemon: create ./build: volume name invalid: "./build" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9.-]" are allowed. See 'docker run --help'.

(Modified to resolve build directory location): docker run -it --env MESOS_ROOT=/mesos -v build:/build containersol/mesos-modules-dev:14.04 sh -c 'cd /build ; cmake . ; make ; ./build/test_flocker_isolator' CMake Error: The source directory "/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. make: *\ No targets specified and no makefile found. Stop. sh: 1: ./build/test_flocker_isolator: not found

tazaki commented 8 years ago

I am also stuck here. Same issue as rcsavage!