Git Product home page Git Product logo

Comments (15)

giuseppe avatar giuseppe commented on May 22, 2024 2

in the Podman man page there is some info on how to configure and use a different OCI runtime:

https://github.com/containers/libpod/blob/master/docs/source/markdown/podman.1.md

from crun.

rhatdan avatar rhatdan commented on May 22, 2024 2

@warmchang We have not made any decisions on that, at this point. Originally crun was for support for cgroupV2, but it also has some interesting features that runc does not, and @giuseppe is looking into adding additional features.

from crun.

onlyjob avatar onlyjob commented on May 22, 2024 1

Thank you.

It is quite easy to plug Crun to Podman by having the following in the /etc/containers/libpod.conf:

runtime = "crun"

[runtimes]
crun = [
    "/usr/bin/crun"
]

from crun.

giuseppe avatar giuseppe commented on May 22, 2024

The easiest way would probably be to use crun through a container engine such as Podman or CRI-O if you care about Kubernetes. FAIK, there is some work in progress for supporting crun also in containerd and in Moby/Docker.
I
If you'd like to use it directly, then you need a container image exploded on disk and already usable by crun since crun doesn't do any storage management.

Assuming you have a container image at rootfs, you can create a config file with crun spec:

$ ls -1
config.json
rootfs

At this point, you can tweak config.json with the configuration you wish.

I'd still suggest though to use it through a higher level tool as you won't have to worry about storage, or setup a network namespace beforehand

from crun.

onlyjob avatar onlyjob commented on May 22, 2024

Interesting. Thank you. I think this information belongs to README to make it clear how Crun is expected to be used.

So how to use Crun with Podman, specifically? Is it documented anywhere?

from crun.

giuseppe avatar giuseppe commented on May 22, 2024

thanks for confirming it works for you. Can we close the issue?

from crun.

onlyjob avatar onlyjob commented on May 22, 2024

I was hoping for some changes to README - just a few words about how to use Crun with Podman and a few words that Crun is a replacement to Runc rather than an alternative to rkt, Docker, etc...

from crun.

giuseppe avatar giuseppe commented on May 22, 2024

I was hoping for some changes to README - just a few words about how to use Crun with Podman and a few words that Crun is a replacement to Runc rather than an alternative to rkt, Docker, etc...

yes that sounds like a good idea. Would you mind to open a PR with these improvements for the README file? I'll be happy to review it

from crun.

warmchang avatar warmchang commented on May 22, 2024

Hi, could you tell us what is the roadmap of crun project? It will replace the runc as the default runtime component in openshift?

from crun.

rhatdan avatar rhatdan commented on May 22, 2024

@onlyjob @giuseppe Should we update the readme and/or close this issue?

from crun.

warmchang avatar warmchang commented on May 22, 2024

@rhatdan I got it, and thank you for reply.

from crun.

onlyjob avatar onlyjob commented on May 22, 2024

I would love to see some changes to README please, as requested here: #154 (comment)

Thanks.

from crun.

giuseppe avatar giuseppe commented on May 22, 2024

I would love to see some changes to README please, as requested here: #154 (comment)

could you open a PR with the changes you'd like to add?

from crun.

rhatdan avatar rhatdan commented on May 22, 2024

Since no PR was generated I am going to close.

from crun.

warmchang avatar warmchang commented on May 22, 2024

@warmchang We have not made any decisions on that, at this point. Originally crun was for support for cgroupV2, but it also has some interesting features that runc does not, and @giuseppe is looking into adding additional features.

https://docs.openshift.com/container-platform/4.12/nodes/containers/nodes-containers-using.html#nodes-containers-runtimes
It seems to be working in this direction. 😄

from crun.

Related Issues (20)

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.