2 ms·
How does this work? Given that its PID1 is not a "real" init process but a bash running the script `/google/scripts/onrun.sh` and its / being type `aufs`, I gue
by mschuster91 9y ago
How does this work? Given that its PID1 is not a "real" init process but a bash running the script `/google/scripts/onrun.sh` and its / being type `aufs`, I guess this is a Debian Docker instance?
- emmelaich 9y agoYep, /etc/debian_version is 9.3. It has a docker0 network interface (among others)
- mschuster91 9y ago> It has a docker0 network interface (among others) That's for the dockerd which is running inside the ... VM? The interesting thing is that the uptime and dmesg show that this system is not shared on the kernel level - if I were to guess, I'd say that Google allocates a real virtual machine with a tiny OS running Docker, starts the docker container inside this VM and then grants you webshell/ssh access to this Docker container. But why the Docker setup when the machine is yours anyway?
- emmelaich 9y agoYou're right... and docker works: $ docker pull hello-world $ docker run hello-world Hello from Docker! This message shows that your installation appears to be working correctly. .... Not surprising since two of the outgoing ports allowed are 2375 and 2376 -- the docker non-ssl and ssl ports.
- Shoothe 9y agoA minor note: docker run will download the image if it's not already present. No need to pull manually (unless you want to go offline or something like that).
- emmelaich 9y agoRegarding whether it is a container or VM I'd guess the former. But not Docker. More likely Google's own container tech which I'm pretty sure way predated Docker.
- mschuster91 9y agoCorrect me if I'm wrong - but no kind of Linux container technology could fake dmesg/uptime. Doesn't this need at least some form of virtualization like Xen, QEMU/KVM or whatever dark magic?
- sargun 9y agoEh, if you use lxcfs with LXD, LXC, or docker, you can fake uptime.