"--config" option for docker run command in cli


Although docker-compose does a pretty good job of bringing up interconnecting containers, there are some drawbacks that we developers face with docker-compose.
Those are setting cpu and memory without having to start swarm during development. This problem is not there for docker run command. However, every time we need to run a docker container, we need to write a big command of what needs to be set like volumes, ports, etc…

Requirement and Suggestion

Either allow docker-compose to set cpu and memory limits or add --config option for docker run where all the options like --volume, -e, -p, etc… can be configured and read from.

The --config can be a json or yaml file for only one container.

Open to other suggestions/solutions.