Comments (7)
Good catch. Do you bind mount /usr/bin/docker
or /usr/local/bin/docker
? If you're using the official docker-engine package, it's /usr/bin/docker
. Can you please verify? Thanks.
from docker-containers.
In more detail, on Ubuntu 14.04, the following should work:
docker run -d --net=host --privileged \
-e MESOS_PORT=5051 \
-e MESOS_MASTER=zk://127.0.0.1:2181/mesos \
-e MESOS_SWITCH_USER=0 \
-e MESOS_CONTAINERIZERS=docker,mesos \
-e MESOS_LOG_DIR=/var/log/mesos \
-e MESOS_WORK_DIR=/var/tmp/mesos \
-v "$(pwd)/log/mesos:/var/log/mesos" \
-v "$(pwd)/tmp/mesos:/var/tmp/mesos" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /cgroup:/cgroup \
-v /sys:/sys \
-v "$(which docker):/usr/local/bin/docker" \
-v /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0 \
-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1 \
mesosphere/mesos-slave:0.28.0-2.0.16.ubuntu1404
$(pwd)
included from the original snippet (NB: I prefer to bind mount a specific folder on the system instead of that).
from docker-containers.
I've tried to add the library binds, but it still doesn't work. This is the log from docker:
I0408 17:51:40.319296 1 logging.cpp:188] INFO level logging started!
I0408 17:51:40.319582 1 main.cpp:223] Build: 2016-03-17 17:45:11 by root
I0408 17:51:40.319646 1 main.cpp:225] Version: 0.28.0
I0408 17:51:40.319658 1 main.cpp:228] Git tag: 0.28.0
I0408 17:51:40.319663 1 main.cpp:232] Git SHA: 961edbd82e691a619a4c171a7aadc9c32957fa73
Failed to create a containerizer: Could not create DockerContainerizer: Failed to create docker: Failed to get docker version: Failed to execute 'docker -H unix:///var/run/docker.sock --version': exited with status 127
from docker-containers.
Thanks @isavcic ! I am using the official one. After removing the local part it works. This is the snippet I used:
docker run -d --net=host --privileged
-e MESOS_PORT=5051
-e MESOS_MASTER=zk://127.0.0.1:2181/mesos
-e MESOS_SWITCH_USER=0
-e MESOS_CONTAINERIZERS=docker,mesos
-e MESOS_LOG_DIR=/var/log/mesos
-e MESOS_WORK_DIR=/var/tmp/mesos
-v "$(pwd)/log/mesos:/var/log/mesos"
-v "$(pwd)/tmp/mesos:/var/tmp/mesos"
-v /var/run/docker.sock:/var/run/docker.sock
-v /cgroup:/cgroup
-v /sys:/sys
-v /usr/bin/docker:/usr/bin/docker
-v /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0
-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1
mesosphere/mesos-slave:0.28.0-2.0.16.ubuntu1404
from docker-containers.
For docker version 1.11.1 you also need the file /usr/lib/x86_64-linux-gnu/libltdl.so.7
from docker-containers.
Would it be enough to document the instructions for docker run for launching these Images?
from docker-containers.
This issue is the same problem with #17 . The absence of docker client in the container image seems to be the root cause of these issues. Hence marking it as a duplicate of #17 and closing this. Lets try to figure out if bundling a docker client with the image is an option.
from docker-containers.
Related Issues (20)
- mesoscloud Docker images outdated and misconfigured HOT 2
- marahon container don't have web ui HOT 4
- Docker 1.10 issue HOT 2
- Why is mesos-slave-dind not kept up to date? HOT 3
- SELinux: Could not open policy file HOT 10
- Mesos Master 1.0.0-rc1 docker image fails to start with openssl error HOT 1
- Initial launch instructions are incorrect HOT 4
- Couldnt get Mesos-Slave running, due to DockerContainerizer error HOT 1
- Please downgrade the CLI to an older version HOT 8
- Issue when starting mesos-slave:1.0.11.0.1-2.0.93.ubuntu1404 without mapping to host's docker HOT 2
- Mesos Master/Slave Configuration Links in README Out of Date
- clear
- MESOS_CONTAINERIZERS ERROR HOT 2
- mesos-slave docker image with docker_mesos_image is broken HOT 1
- docker
- Consider removing --privileged argument from agent launch instructions
- Error running mesos-slave
- Latest tag missing
- Local Persistent Volume mount() Silently Fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-containers.