Giter Site home page Giter Site logo

Comments (2)

zyupo avatar zyupo commented on August 25, 2024

这里是指运维平台通过Docker端口调用服务器上Docker API接口的地址,需要在服务器上面为docker服务配置一个端口。
在使用前,需要你先修改docker配置文件,为Docker配置远程调用端口。

  • 方案1:
shell> vim /usr/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd
修改为:
ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375
  • 方案2:
shell> vim /etc/sysconfig/docker
OPTIONS='--selinux-enabled --log-driver=journald  --signature-verification=false
改为:
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375'

修改完docker启动端口后,在平台上docker地址,就可以 服务器内网IP:2375(192.168.1.1:2375)
后面会改进这里也会及时完善文档。

from spug.

LzxUser avatar LzxUser commented on August 25, 2024

明白了

from spug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.