Set Docker_Opts in centos

后端 未结 12 1711
我在风中等你
我在风中等你 2021-01-31 04:44

I need to set docker to listen to tcp://0.0.0.0/4243 on my host machine running amazon linux (centos). All the documentation I have seen has told me to run the following command

12条回答
  •  爱一瞬间的悲伤
    2021-01-31 05:17

    I am working on centos 7.

    I just want to add insecure-registry in docker config file then I changed "DOCKER_OPTS=--insecure-registry=...." in /etc/sysconfig/docker while it did not work.

    While I saw a INSECURE_REGISTRY in the config so I changed this variable and it WORKS!

    So I guess DOCKER_OPTS does not work here!

    But it worked on my unbuntu 14!

    It is really frustrating when using docker!

提交回复
热议问题