Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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"


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.


I use `COPY --from=image` to move data between images. Do you need some more advanced features of rsync?


I've got that for rebasing: https://github.com/efrecon/docker-rebase


heck, why not toss in --net=host


... and privileged, then make the entrypoint 'nsenter' for PID 1


    -v /:/sysroot


could you make it curl a script as well




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: