問題タブ [docker-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
amazon-web-services - Docker : リモート API にアクセスできません
docker rest API を有効にして、ローカル マシンからアクセスしようとしています。EC2 インスタンスに docker をセットアップしました。ExecStart私は自分の行を編集します/lib/systemd/systemd/docker.service
それから私は走りましsystemctl daemon-reloadたsudo service docker restart。
サーバー内から実行するとcurl http://localhost:4243/version、探しているリターンが得られます。しかしcurl http://remote-machine-ip:4243/version、ローカル システムから実行すると、failed to connectエラーが発生します。これを修正するにはどうすればよいですか?