0

I have a json template for micro service to deploy using Mesosphere:

{
  "id": "service",
  "container": {
    "docker": {
      "image": "foo/foo:latest"
    },
    "type": "DOCKER",
    "volumes": []
  },
  "args": [
    "--key", "value"
  ],
  "cpus": 0.5,
  "mem": 128.0,
  "instances": 1
} 

But for reasons, I want to manually do docker run command to deploy this container. Here's my cmd:

docker run --name service\
 -e "key=Mesosphere DCOS" \
 --cpu-period=100000 \
 --cpu-quota=50000 \
 --memory=128M \
 foo/foo:latest

Then the container exited and complained about the key value is missing. So I'm not sure if the args = -e in docker run command.

Casper
  • 1,663
  • 7
  • 35
  • 62

1 Answers1

0

"Args" are the arguments of the command. An example is:

docker run --name service\
 -e "key=Mesosphere DCOS" \
 --cpu-period=100000 \
 --cpu-quota=50000 \
 --memory=128M \
 foo/foo:latest \
bash --key value

"Args" would be:

  "args": [
    "--key", "value"
  ],
German
  • 1,449
  • 12
  • 13