Code Monkey home page Code Monkey logo

Comments (7)

LK4D4 avatar LK4D4 commented on May 18, 2024

@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.

rajasec avatar rajasec commented on May 18, 2024

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.

estesp avatar estesp commented on May 18, 2024

@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.

rajasec avatar rajasec commented on May 18, 2024

@estesp

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.

estesp avatar estesp commented on May 18, 2024

@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.

rajasec avatar rajasec commented on May 18, 2024

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.

crosbymichael avatar crosbymichael commented on May 18, 2024

Fixed by #20

from runc.

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.