Set Docker_Opts in centos

后端 未结 12 1673
我在风中等你
我在风中等你 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 Think on CentOS, you can try setting the options as below in the file /etc/sysconfig/docker

    other_args="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"
    

    Then restart the docker and try checking if the port is opening using

    netstat -plt | grep 4243 
    

    This should list if listening

提交回复
热议问题