Earlier quoted context omitted.
My understanding is that docker will expose the ports to the host machine's network interfaces, which is a crucial difference. For my home server running docker that means exposed to the LAN, but not the WAN unless I add in a port forwarding rule on my router. Similarly in an enterprise environment you would be exposing the port on whatever VLAN the host is connected to, which hopefully doesn't have directly transit…
I was thinking along similar lines to what you've suggested here, but then I considered how many VPS might be configured by folks following some random web tutorial, to set up their LAMP stack (or whatever), that end up doing something like what was described.
Codex just found a "workaround" of not having sudo on my PC
241–250 of 330 posts
Re: Codex just found a "workaround" of not having sudo on my PC
#242Earlier quoted context omitted.
wait so just being lazy and using sudo on Docker commands instead of figuring things out actually means I'm being safer? awesome.
This feels like using Docker is just inherently unsafe.
Re: Codex just found a "workaround" of not having sudo on my PC
#243Re: Codex just found a "workaround" of not having sudo on my PC
#244Every time I try to install Docker there's a warning that being in the "docker" group is equivalent to having root access. You should probably know about this workaround by now.
Re: Codex just found a "workaround" of not having sudo on my PC
#245Re: Codex just found a "workaround" of not having sudo on my PC
#246Every time I try to install Docker there's a warning that being in the "docker" group is equivalent to having root access. You should probably know about this workaround by now.
Most of us install Docker just to run a project locally, and is part of a long checklist of things to install. We can't expect everyone to be an expert on the hundreds of apps/tools/packages that get installed on a machine. It's like expected people to read, and understand, all the terms of service shoved in front of us on a daily basis.
There's your mistake.
(Akshually using Docker is the real mistake, but that ship has sailed, no fixing these people now.)
Re: Codex just found a "workaround" of not having sudo on my PC
#247Earlier quoted context omitted.
That's why adding your user account to the docker group is a separate step that explicitly does not happen as part of the installation: https://docs.docker.com/engine/install/linux-postinstall/ > Warning > The docker group grants root-level privileges to the user. For details on how this impacts security in your system, see Docker Daemon Attack Surface.
And containers were supposed to make things safer ... Huge design mistake if you ask me.
No. Containers are a slight improvement over the .tar.gz software distribution method we had a few decades ago.
(And I mean "slight" literally - a Docker container is just a .tar.gz with a bundled bash script that runs in a chroot.)
Re: Codex just found a "workaround" of not having sudo on my PC
#248Re: Codex just found a "workaround" of not having sudo on my PC
#249Re: Codex just found a "workaround" of not having sudo on my PC
#250Wasn't it well-known that putting people in the docker group is basically the same as giving them root rights?