Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
docer on lxd/lxc on gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mrhe
n00b
n00b


Joined: 07 Aug 2012
Posts: 32

PostPosted: Fri Feb 22, 2019 1:03 pm    Post subject: docer on lxd/lxc on gentoo Reply with quote

Hello,
I've run LXD on gentoo, it works fine.
I would like to run docker in LXD container but I have problems with cgroups. Has anyone made this?

inside container (ubuntu)
Code:
docker run --privileged  hello-world
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "apply caps: operation not permitted": unknown.
ERRO[0000] error waiting for container: context canceled



Code:

lxc config edit ubuntu-docker
architecture: x86_64
config:
  image.architecture: amd64
  image.build: "20190130_07:43"
  image.description: Ubuntu bionic amd64 (20190130_07:43)
  image.distribution: ubuntu
  image.name: ubuntu-bionic-amd64-default-20190130_07:43
  image.os: ubuntu
  image.release: bionic
  image.serial: "20190130_07:43"
  image.variant: default
  raw.lxc: lxc.cgroup.devices.allow = a lxc.mount.auto = proc:rw sys:rw cgroup:rw  lxc.cap.drop=
    lxc.aa_profile = lxc-container-default-with-nesting
  security.nesting: "true"
  security.privileged: "true"
  volatile.base_image: 37e2366ecb691d1d56ef2f422483165213c17480bd910a4c9af2c0e94dfdfa03
  volatile.eth0.hwaddr: 00:16:3e:bc:d3:b1
  volatile.idmap.base: "0"
  volatile.idmap.next: '[]'
  volatile.last_state.idmap: '[]'
  volatile.last_state.power: RUNNING
  volatile.neteth0.hwaddr: 00:16:3e:f6:fa:68
  volatile.neteth0.name: eth1
devices: {}
ephemeral: false
profiles:
- dmzprofile
stateful: false
description: Ubuntu 18, Docker.io



Code:
lxd ~ # uname -a
Linux lxd 4.18.12 #4 SMP Fri Feb 22 11:13:32 CET 2019 x86_64 Intel(R) Xeon(R) CPU X5670 @ 2.93GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum