Comments (15)
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.
@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.
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.
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.
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.
thanks for confirming it works for you. Can we close the issue?
from crun.
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.
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.
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.
@onlyjob @giuseppe Should we update the readme and/or close this issue?
from crun.
@rhatdan I got it, and thank you for reply.
from crun.
I would love to see some changes to README please, as requested here: #154 (comment)
Thanks.
from crun.
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.
Since no PR was generated I am going to close.
from crun.
@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)
- crun: bpf create ``: Invalid argument HOT 2
- #21520 crun not working with pterodactyl wings HOT 6
- Read-only file volumes fail on fedora 39 with docker HOT 5
- How to verify downloaded binaries? HOT 2
- Release v1.14.4 HOT 2
- unrecognized option '--keep' when using crun for building docker images HOT 2
- Example Config HOT 1
- Crun not starting in amd64/x86_64 docker container on Apple Silicon HOT 3
- crun 1.14.4: `Error: OCI runtime error: crun: Error relocating /usr/bin/crun: statx: symbol not found` HOT 3
- BPF create error when use debian bullseye kernel >= 5.10.0-26-amd64 HOT 1
- Discrepancy between crun and runc when disallowing access by default to devices with cgroups v1 HOT 5
- Does not ignore SIGWINCH if no terminal is allocated
- container create failed: sd-bus call: Cannot set property CPUQuotaPeriodUSec, or unknown propert HOT 8
- Compilation error with clang++ 17 HOT 3
- Missing libsystemd headers on Alpine Linux v3.19 HOT 2
- Version 1.14.5 HOT 1
- [packit] Propose downstream failed for release 1.15 HOT 2
- Container creation fails with read-only bind mount HOT 3
- what is the purpose and future of crun-wasm - asking for (a friend) Debian packaging :) ? HOT 5
- Different CRUN/RUNC cgroup hierarchy HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crun.