zoukankan      html  css  js  c++  java
  • docker配置远程管理端口

    date: 2019-07-19  17:30:01

    author: headsen chen

    notice :个人原创

     Ubuntu18用这篇文章

     ubuntu 16用另外一篇文章

    ubuntu 14

    vim /etc/default/docker
    DOCKER_OPTS="-H=unix:///var/run/docker.sock -H=0.0.0.0:2375"

    1,新的docker机器开启2375端口

    ubuntu:

    sudo vim /etc/default/docker
      DOCKER_OPTS="-H=unix:///var/run/docker.sock -H=0.0.0.0:2375"

    Centos:

     sudo vim /etc/sysconfig/docker
       other_args='-Htcp://0.0.0.0:2375 -H unix:///var/run/docker.sock'  #centos6下使用
       OPTIONS='-Htcp://0.0.0.0:2375 -H unix:///var/run/docker.sock'    #centos7下使用
    

    2,重启docker 服务:

        systemctl daemon-reload

        systemctl restart docker

    3,portainer上面加入新的docker机器
       
  • 相关阅读:
    使用springboot2+elasticsearch7注意事项
    jwt使用
    CTF web之旅 15
    CTF web之旅 14
    CTF web之旅 13
    CTF web之旅 12
    CTF web之旅 11
    CTF web之旅 10
    CTF web之旅 9
    CTF web之旅 8
  • 原文地址:https://www.cnblogs.com/kaishirenshi/p/11214704.html
Copyright © 2011-2022 走看看