garethr-docker
garethr-docker copied to clipboard
Flag '--cpuset' doesn't exist
Using module version 5.1.1.
Flag '--cpuset' doesn't exist with Docker 1.10. Output when trying to start: " Starting docker-elasticsearch: flag provided but not defined: --cpuset"
From init-script: "
printf "Starting $prog:\t"
$docker rm elasticsearch >/dev/null 2>&1
$docker run
--net bridge -m 0b --cpuset=0-7
..
Hiera-conf: "
docker::run_instance::instance:
elasticsearch:
image: 'elasticsearch:2.2'
cpuset: '0-7'
...
I think it should be '--cpuset-cpus' according to the docs: https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources
Yep, looks like it was deprecated: https://docs.docker.com/engine/deprecated/
The following double-dash options are deprecated and have no replacement:
docker run --cpuset
Should be a quick fix, let me PR :smile:
Can I submit a PR for this new behaviour?