by mdaniel · 4y ago · 0 comments
docker run --privileged -ti \
gcr.io/ossf-malware-analysis/analysis
I'm sure it's more complicated than it looks, but seeing "--privileged" and "malware-analysis" in the same command made me chuckle docker run \
-v /var/tmp/fake.docker.sock:/var/run/docker.sock \
-e DOCKER_HOST=unix:///var/run/docker.sock \
would be some next-level runtime analysis, eh?It's running a Podman container (like Docker but daemon-less) with a GVisor runtime for isolation inside the docker container.
The outer container is privileged, but doesn't run any attacker controlled code.
But, yeah, seeing those two strings together in the same command is certainly amusing.
`--privileged` is needed to run the container inside a container.
e.g. https://www.docker.com/blog/docker-can-now-run-within-docker...
This is particularly useful for using Kubernetes to manage a cluster of instances.