4 ms·
I'm probably getting banned for committing this war crime but have you considered a #!/usr/bin/env -S bash -c "docker run --privileged ..." FROM docke
by adtac 3y ago
I'm probably getting banned for committing this war crime but have you considered a
#!/usr/bin/env -S bash -c "docker run --privileged ..."
FROM docker
RUN <<EOF cat >/other.Dockerfile
#!/usr/bin/env -S bash -c "docker run ..."
FROM debian:buster
EOF
RUN chmod +x /other.Dockerfile
CMD bash -c "/other.Dockerfile &; ./main"
- ta988 3y agocould you make it curl a script as well
- asn1parse 3y agoheck, why not toss in --net=host
- bravetraveler 3y ago... and privileged, then make the entrypoint 'nsenter' for PID 1
- yonatan8070 3y ago-v /:/sysroot
- a_t48 3y agoNo, but that’s a fun idea. Most of my docker crimes involve working around the lack of REBASE or similar to transplant a layer from another stage. Instead I’m forced to abuse rsync.
- 8organicbits 3y agoI use `COPY --from=image` to move data between images. Do you need some more advanced features of rsync?
- efrecon 3y agoI've got that for rebasing: https://github.com/efrecon/docker-rebase https://github.com/efrecon/docker-rebase