Giter Site home page Giter Site logo

Comments (8)

tamarrow-zz avatar tamarrow-zz commented on July 24, 2024

what's the output of dcos --version?

from docker-containers.

majidgolshadi avatar majidgolshadi commented on July 24, 2024

@tamarrow
I download it from https://downloads.dcos.io/binaries/cli/linux/x86-64/dcos-1.8/dcos link and It returns version

$ dcos --version
dcoscli.version=0.4.12
dcos.version=N/A
dcos.commit=N/A
dcos.bootstrap-id=N/A

from docker-containers.

tamarrow-zz avatar tamarrow-zz commented on July 24, 2024

If you are using the package subcommand, you need to connect the cli to your DC/OS cluster. dcos config set core.dcos_url http://your/dcos/cluster

from docker-containers.

majidgolshadi avatar majidgolshadi commented on July 24, 2024

I my machine I run any a zookeeper, mesos-master and mesos-slave like below

docker run -d --name=zookeeper --net=host netflixoss/exhibitor:1.5.2

docker run -d --name=mesos-master-1 --net=host \
  -e MESOS_PORT=5050 \
  -e MESOS_ZK=zk://127.0.0.1:2181/mesos \
  -e MESOS_QUORUM=1 \
  -e MESOS_REGISTRY=in_memory \
  -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" \
  mesosphere/mesos-master:1.0.11.0.1-2.0.93.ubuntu1404

docker run -d --net=host --name=mesos-slave-1 --privileged \
  -e MESOS_PORT=5054 \
  -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/local/bin/docker:/usr/local/bin/docker \
  mesosphere/mesos-slave:1.0.11.0.1-2.0.93.ubuntu1404

and after that set core.dcos_url config

./dcos config set core.dcos_url http://localhost:5050

and when I want to install a package I got that error

from docker-containers.

tamarrow-zz avatar tamarrow-zz commented on July 24, 2024

Did you verify that the host is up? In your output of dcos --verison above you have dcos.version=N/A which indicated that the cli cannot connect to the cluster.

from docker-containers.

lloesche avatar lloesche commented on July 24, 2024

@tamarrow doesn't dcos-cli have to point to a DC/OS cluster? localhost:5050 sounds like a Mesos Master. Is that even supported?

from docker-containers.

tamarrow-zz avatar tamarrow-zz commented on July 24, 2024

The package subcommand will not work. The node subcommand should work, but this is not supported.

from docker-containers.

majidgolshadi avatar majidgolshadi commented on July 24, 2024

@tamarrow I ran these commands on my computer

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.