Public Repository

Last pushed: 7 months ago
Short Description
A dcos-cli instance connected to a DC/OS cluster
Full Description

Supported tags

  • 0.4.15

What is Stratio dcos-cli?

Easy to setup dcos-cli connected to a DC/OS cluster passed as parameter without needing manual intervention to retrieve the token.

How to use this image

docker run -dit --name dcos-cli -e DCOS_IP=http://<DC/OS cluster manager> -e SSL=<true|false> -e SSH=<true|false> -e TOKEN_AUTHENTICATION=<true|false> -e DCOS_USER=<DC/OS user> -e DCOS_PASSWORD=<DC/OS password> -e BOOTSTRAP_USER=<user to log into DC/OS manager host> -e REMOTE_PASSWORD=<password to log into DC/OS manager host> stratio/dcos-cli:0.4.14

Environment variables

Start the image using the following environment variables (if needed):

DCOS_IP

URL of the DC/OS cluster manager (i.e 10.10.10.10)

SSL

Set to true if you want to enable HTTPS protocol

SSH

Set to true if you want to enable ssh service

TOKEN_AUTHENTICATION

Whether you need authentication to log into your DC/OS cluster.
If true, you need to provide DCOS_USER and DCOS_PASSWORD or DCOS_USER and PEM_FILE_PATH.

DCOS_USER

User to log into DC/OS cluster

DCOS_PASSWORD

Password for DCOS_USER to log into DC/OS cluster.

BOOTSTRAP_USER

User to login into DC/OS master.

REMOTE_PASSWORD

Password for REMOTE_USER to login into DC/OS master.

PEM_FILE_PATH

Path to the pem file to be used to log into DC/OS master.

Examples:

  • No authentication:
    docker run -dit --name dcos-cli -e DCOS_IP=10.10.10.10 -e SSH=true -e TOKEN_AUTHENTICATION=false stratio/dcos-cli:0.4.15
    
  • Authentication with user and password:

    docker run -dit --name dcos-cli -e DCOS_IP=10.10.10.10 -e SSL=true -e SSH=true -e TOKEN_AUTHENTICATION=true -e DCOS_USER=admin@demo.stratio.com -e DCOS_PASSWORD=stratio -e BOOTSTRAP_USER=root -e REMOTE_PASSWORD=12345678 stratio/dcos-cli:0.4.15
    
  • Authentication with user and pem file:

    docker run -dit --name dcos-cli -v /path_to_your_pem:/docker_path_to_pem -e DCOS_IP=10.10.10.10 -e SSL=true -e SSH=true -e TOKEN_AUTHENTICATION=true -e DCOS_USER=admin@demo.stratio.com -e DCOS_PASSWORD=stratio -e BOOTSTRAP_USER=root -e REMOTE_PASSWORD=12345678 -e PEM_FILE_PATH=/docker_path_to_pem/file.pem stratio/dcos-cli:0.4.15
    
Docker Pull Command
Owner
stratio

Comments (0)