Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The execution of this command is wrong. #14

Open
chadiandianwenrou opened this issue Apr 7, 2016 · 2 comments
Open

The execution of this command is wrong. #14

chadiandianwenrou opened this issue Apr 7, 2016 · 2 comments

Comments

@chadiandianwenrou
Copy link

[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_flocker_isolator'
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
Copy link

rorysavage77 commented May 12, 2016

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_flocker_isolator'
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
Copy link

tazaki commented May 12, 2016

I am also stuck here. Same issue as rcsavage!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants