-
Notifications
You must be signed in to change notification settings - Fork 15
第四步 电视盒子LXC套娃Docker
cooip-jm edited this page Sep 3, 2024
·
4 revisions
(alpine / debian 都可以,这只是为了“演出效果”)
lxc-create --name Docker --template download -- --dist ubuntu --release jammy --arch arm64 --server mirrors.bfsu.edu.cn/lxc-images
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64
# Container specific configuration
lxc.apparmor.profile = generated
lxc.apparmor.allow_nesting = 1
lxc.apparmor.raw = mount fstype=fuse,
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0
lxc.mount.auto = sys:mixed
lxc.rootfs.path = dir:/var/lib/lxc/Docker/rootfs
lxc.uts.name = Docker
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = vmbr0
lxc.net.0.flags = up
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0
features: fuse=1,nesting=1
https:/containers/fuse-overlayfs/releases
/usr/local/bin/fuse-overlayfs
nano /etc/docker/daemon.json
{"storage-driver": "fuse-overlayfs"}
ARM ubuntu源使用的是ports
https://mirrors.bfsu.edu.cn/help/ubuntu-ports/
lxc-start Docker
lxc-attach Docker
##进入后
vi /etc/apt/sources.list
apt update && apt upgrade -y && apt install curl nano wget git fuse-overlayfs apt-transport-https ca-certificates apt-utils software-properties-common gnupg lsb-release -y
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
或者
curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud
docker run -d --restart=always --name="portainer" -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock 6053537/portainer-ce