How do I pass docker parameters such as `--cap-add=XXX` to my docker instances running in BlueData?

≡放荡痞女 提交于 2019-12-11 16:59:41

问题


I would like to run a container with --cap-add=IPC_LOCK.

According to the BlueData 3.7 release notes, IPC_LOCK is supported:

HAATHI-13547: Docker configuration now includes default IPC_LOCK capability for all deployed containers. IPC_LOCK is the feature otherwise known as memlock, required by certain customer applications. The permitted capabilities of Docker containers as expressed on the docker invocation command line when instantiating a container now includes this value explicitly.

How do I pass docker parameters such as --cap-add=XXX to my docker instances running in BlueData?


回答1:


You need to modify /opt/bluedata/common-install/bd_mgmt/releases/1/sys.config. Look for allowed_docker_caps which already has a list of allowed capabilities. A block of comments above that tuple list all the capabilities allowed. You can choose from them. You have to change the file on all hosts and restart each bd_mgmt after updating the file.

Note that all new clusters created after the change will inherit these settings.



来源:https://stackoverflow.com/questions/56731980/how-do-i-pass-docker-parameters-such-as-cap-add-xxx-to-my-docker-instances-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!