0

我正在尝试启用 docker rest API,然后从我的本地计算机访问它。我在 ec2 实例上设置了 docker。我编辑我的ExecStart/lib/systemd/systemd/docker.service

ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243

然后我跑systemctl daemon-reloadsudo service docker restart

当我curl http://localhost:4243/version从服务器内部运行时,我得到了我正在寻找的回报。但是当我curl http://remote-machine-ip:4243/version从本地系统运行时,我得到一个failed to connect错误。我该如何解决?

4

0 回答 0