Lurker News

Comments (173) 27 threads

Show all comments

Showing thread 18 of 27

a_t481 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.
adtac3 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 replies#
heck, why not toss in --net=host
bravetraveler#
... and privileged, then make the entrypoint 'nsenter' for PID 1
yonatan8070#

    -v /:/sysroot
ta988#
could you make it curl a script as well
a_t482 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.
8organicbits#
I use `COPY --from=image` to move data between images. Do you need some more advanced features of rsync?