Back to front pageView on Hacker News (opens in a new tab)Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years agogist.github.com (opens in a new tab)#!/usr/bin/env docker run#!/usr/bin/env docker run. GitHub Gist: instantly share code, notes, and snippets.Comments (173) 27 threadsShow all commentsShowing thread 18 of 27[-]a_t482 years ago1 reply#That’s cute - though typically the docker images I build need supporting infra around them anyhow - I’d have to forward to the build script.[-]adtac2 years ago3 replies#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 </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"[-]asn1parse2 years ago2 replies#heck, why not toss in --net=hostbravetraveler2 years ago#... and privileged, then make the entrypoint 'nsenter' for PID 1yonatan80702 years ago# -v /:/sysrootta9882 years ago#could you make it curl a script as well[-]a_t482 years ago2 replies#No, 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.8organicbits2 years ago#I use `COPY --from=image` to move data between images. Do you need some more advanced features of rsync?efrecon2 years ago#I've got that for rebasing: https://github.com/efrecon/docker-rebase
Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years ago
a_t482 years ago1 reply#That’s cute - though typically the docker images I build need supporting infra around them anyhow - I’d have to forward to the build script.
adtac2 years ago3 replies#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 </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"
a_t482 years ago2 replies#No, 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.
8organicbits2 years ago#I use `COPY --from=image` to move data between images. Do you need some more advanced features of rsync?
Comments (173) 27 threads
Show all comments
Showing thread 18 of 27