docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

docker-machine openstack driver should support passing user-data config file on server create #3340

Open ktwalrus opened 8 years ago

ktwalrus commented 8 years ago

The openstack driver doesn't seem to have a way for me to specify a user-data config file when creating new machines.

I peeked at the driver source and docker-machine uses Rackspace's Gopher Cloud API which does support a userData config option. But, the docker-machine openstack driver does not support passing this option on to Rackspace's driver.

I do see that userdata is supported in the DigitalOcean driver, but I am using OVH Public Cloud for my docker machines and need this option to specify a cloud-config.yaml file to configure CoreOS based machines in the OVH Public Cloud.

adaikal commented 8 years ago

+1

Would be useful if user-data feature is implemented in openstack docker-machine driver.

bcopy commented 8 years ago

Note that CentOS firewalls the port 2376 by default, so an extra "provision" step is necessary - "user-data" support would greatly help.

davidarcher commented 6 years ago

I know this is an old issue but I see a openstack-user-data-file flag in the code now so this can probably be closed (or converted to an issue to fix the documentation because I don't see the flag there).

Ref: https://github.com/docker/machine/commit/b2e3d81537270e63b3cb49246cda97c62d3deacb

davidarcher commented 6 years ago

I opened a PR over in the docs repo to get this documented.

https://github.com/docker/docker.github.io/pull/5730