Git Product home page Git Product logo

Comments (4)

felipecrs avatar felipecrs commented on July 28, 2024 1

That's sufficient for sure. Thank you very much.

from docker-images.

felipecrs avatar felipecrs commented on July 28, 2024

Lines I can change when using Sysbox:

bash -c 'sleep 0.5s && exec dind dockerd'

- exec dind dockerd
+ exec dockerd

I can also probably remove these 2 files at initialization:

echo 'dockremap:165536:65536' | tee -a /etc/subuid
echo 'dockremap:165536:65536' | tee -a /etc/subgid

With rm -f /etc/subuid /etc/subgid on entrypoint.sh.

from docker-images.

felipecrs avatar felipecrs commented on July 28, 2024

@ctalledo, I was waiting to be able to run sysbox myself to verify whether sysbox-runc would inject any environment variable to make it easy for me to detect whether the container is running with sysbox or not, but there's no extra variable.

Do you have any idea on whether this can be accomplished? (without having to mount the docker socket and inspecting the container on host for the runtime).

from docker-images.

ctalledo avatar ctalledo commented on July 28, 2024

Hi @felipecrs,

I was waiting to be able to run sysbox myself to verify whether sysbox-runc would inject any environment variable to make it easy for me to detect whether the container is running with sysbox or not, but there's no extra variable.

Yes I think in general we avoid inserting env variables into the container because we want it to resemble a clean Linux host environment as much as possible.

One easy way to detect if the container is running with Sysbox is to look for sysboxfs in the container mounts (e.g., mount | grep sysboxfs). Would this do or do you need a more formal method?

from docker-images.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.