-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker(install): opt to expose local tcp address #531
Conversation
3476a96
to
5b9555f
Compare
Signed-off-by: CrazyMax <[email protected]>
db19a10
to
f0cc1b8
Compare
Signed-off-by: CrazyMax <[email protected]>
d8b99ff
to
56f7596
Compare
Signed-off-by: CrazyMax <[email protected]>
56f7596
to
51e6621
Compare
const cmd = `${dockerPath} --host="${dockerHost}" --config-file="${daemonConfigPath}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`; | ||
let cmd = `${dockerPath} --host="${dockerHost}" --config-file="${daemonConfigPath}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`; | ||
if (this.localTCPPort) { | ||
cmd += ` --host="tcp://127.0.0.1:${this.localTCPPort}"`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Exposing the docker socket over TCP without TLS is deprecated and will be a hard failure in future:
WARN[2024-12-13T11:24:36.737970212Z] Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network. host="tcp://127.0.0.1:1234"
WARN[2024-12-13T11:24:36.738007253Z] Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there! host="tcp://127.0.0.1:1234"
WARN[2024-12-13T11:24:36.738011878Z] [DEPRECATION NOTICE] In future versions this will be a hard failure preventing the daemon from starting! Learn more at: https://docs.docker.com/go/api-security/ host="tcp://127.0.0.1:1234"
See: moby/moby#41285
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do agree but hope there will be some opt-in env var to still avoid TLS for development purpose.
This will be used in https://github.com/docker/setup-docker-action