3 ms·
Can anyone shed some light on what the following does and why it's necessary? sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D78
by pmoriarty 12y ago
Can anyone shed some light on what the following does and why it's necessary?
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
"All we’re doing is installing the latest stable version of Docker, direct from Docker’s own apt repository, configuring it to listen for both TCP and socket connections, updating the rest of the system, and installing avahi for multicast DNS resolution."
Installing avahi for multicast DNS resolution? Why does he need avahi? Why does he need multicast DNS resolution?
[Update: I don't know why the person that replied deleted their comment, because it was useful info. Here it is, for posterity:
1) Add's the docker key from the Ubuntu keyserver, which is already trusted, so the docker packages can be installed.
2) Avahi lets him name his docker containers and then discover them on the local mac os host and the linux VM, eg wossname.nginx, rather than some dynamically assigned IP.]
- deleted 12y ago[deleted]
- pmoriarty 12y agoWouldn't it be simpler to just assign the docker instances a static IP and make a corresponding /etc/hosts entry?
- 23david 12y agoInteresting... Didn't think that avahi would work across subnets. I hope it works with the OSX firewall turned on and set to secure settings. Will need to test, but there are workarounds I've had to use in similar situations.