Git Product home page Git Product logo

Comments (7)

isavcic avatar isavcic commented on June 26, 2024 1

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.

isavcic avatar isavcic commented on June 26, 2024 1

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.

viniiciusconceicao avatar viniiciusconceicao commented on June 26, 2024

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.

viniiciusconceicao avatar viniiciusconceicao commented on June 26, 2024

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.

PetaPetaPeta avatar PetaPetaPeta commented on June 26, 2024

For docker version 1.11.1 you also need the file /usr/lib/x86_64-linux-gnu/libltdl.so.7

from docker-containers.

asridharan avatar asridharan commented on June 26, 2024

Would it be enough to document the instructions for docker run for launching these Images?

from docker-containers.

asridharan avatar asridharan commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.