Comments (7)
@rajasec Yeah, this is know issue. There was PR in libcontainer repo for fix, it will be migrated soon. @estesp was author IIRC
from runc.
Thanks Alexander Morozov.
I'll wait for the fix to happen..
Is anything related to cgroups not able to modify the /sys params ?
from runc.
@rajasec this is related to an older cgroup limitation that didn't allow certain parameters (such as memory.swappiness
) to be written in cgroup hierarchies if you aren't in the parent/root cgroup. This is no longer a restriction in current kernels, but if you are running 14.04LTS, for example, you hit this issue.
More information is available here: https://github.com/docker/libcontainer/issues/639#issue-89392076
from runc.
Even I tried with the latest changes part of libcontainer in Docker project still failed
I've ensured that following file changes which got merged and available in my repository.
cgroups/fs/memory.go
cgroups/systemd/apply_systemd.go
configs/cgroup.go
Error thrown:
[8] System error: write /sys/fs/cgroup/memory/docker/ac23ecfc90b503e1d5c73b699bc3fef8ca99eadd07452d850de73fa4b029d688/memory.swappiness: invalid argument
make: *** [all] Error 1
I've created bug in libcontainer project.
"memory.swapiness fails to get updated in Docker 1.8_dev build #648"
from runc.
@rajasec the Docker PR which fixes the same problem has not been merged yet--the change you would need for running Docker (which it appears you are from your log above) is in moby/moby#14030 which has not been merged yet (and changes the default template in the native execdriver in Docker)
from runc.
Thanks estesp.
I could successfully launch the container using runc today. I tried with basic ubuntu image and with container.json having the rootfs of ubuntu image. I could launch the container with the simple bash shell running inside the container
My kernel version : 3.13 ( based on 14.04 LTS).
Looks interesting to work
As I mentioned in another bug created, vendor directory is not available, neither update.sh will be available for vendor specific things.
I have manually pulled the changes inside libcontainer for compilation.
Very light weight without docker daemon
Thanks
Rajasec
from runc.
Fixed by #20
from runc.
Related Issues (20)
- `runc run [timens with no offsets]` is flaky on ubuntu HOT 3
- GHA CI broken HOT 1
- docker exec can't get detail messages if runc init exited abnormally HOT 4
- Mirror site of criu is broken HOT 1
- Tests broken in debian due to PR: rootfs: remove --no-mount-fallback and finally fix MS_REMOUNT HOT 1
- When runc updates the values โโof cpu-rt-period and cpu-rt-runtime synchronously, an error occurs.
- libcontainer cannot be build due to runc-dmz (as a Go library for third party projects) : `dmz_linux.go:21:12: pattern runc-dmz: no matching files found` HOT 5
- [Alpine] docker top, runc ps fail with cgroup2 with: unable to get all container pids HOT 7
- semi-arbitrary cgroup resource write with malicious hugetlb configuration HOT 1
- container create failed (`lstat /proc/63538/ns/ipc: no such file or directory`) HOT 1
- Blockers for v1.2.0 HOT 7
- runc pod respawn will destroy Qemu processes (with pid 1) HOT 3
- (u|g)idMappings should not exist when joining an existing user ns HOT 9
- runc-dmz: Inheritable capabilities are dropped when they previously weren't HOT 16
- How to deal with the Configuration Conflict for user ns HOT 1
- containerd/crio passes invalid config.json HOT 2
- flaky test: TestProcessEmptyCaps
- Some namespace path joining errors together with user ns HOT 3
- FileLog Pipeline Not Closed, Causing runc exec to Hang HOT 2
- runc can not wait process in the container exits when share pid namespace HOT 4
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 runc.