garethr-docker icon indicating copy to clipboard operation
garethr-docker copied to clipboard

Flag '--cpuset' doesn't exist

Open sege opened this issue 9 years ago • 2 comments

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

sege avatar Feb 26 '16 08:02 sege

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:

petems avatar Mar 09 '16 13:03 petems

Can I submit a PR for this new behaviour?

rogierslag avatar Jul 12 '17 08:07 rogierslag