Hi,
I'm running Proxmox 7.2 want to run a few applications as docker containers but save the overhead a VM would bring by having Docker inside a Proxmox LXC.
Could find those two articles on how to accomplish that with an unprivileged LXC but it doesn't work on my system.
https://forum.proxmox.com/threads/docker-in-an-lxc.32938/
https://www.solaris-cookbook.eu/virtualisation/proxmox/proxmox-lxc-running-docker-inside-container/
Procedure:
## Reboot container
## Try to run a docker container inside the LXC
Do you have ideas what I did wrong?
Any suggestions appreciated!
I'm running Proxmox 7.2 want to run a few applications as docker containers but save the overhead a VM would bring by having Docker inside a Proxmox LXC.
Could find those two articles on how to accomplish that with an unprivileged LXC but it doesn't work on my system.
https://forum.proxmox.com/threads/docker-in-an-lxc.32938/
https://www.solaris-cookbook.eu/virtualisation/proxmox/proxmox-lxc-running-docker-inside-container/
Procedure:
Code:
root@PVE:~# cat /etc/pve/lxc/112.conf
arch: amd64
cores: 4
cpulimit: 3
features: nesting=1
hostname: Codex
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=7E:18:7E:D0:78:F3,ip=dhcp,ip6=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-112-disk-0,size=128G
swap: 0
unprivileged: 1
#################### docker section ####################
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:
## Try to run a docker container inside the LXC
Code:
root@Codex:~# docker run --rm hello-world
docker: Error response from daemon: Could not check if docker-default AppArmor profile was loaded: open /sys/kernel/security/apparmor/profiles: permission denied.
Do you have ideas what I did wrong?
Any suggestions appreciated!
Last edited: