reordered
This commit is contained in:
38
docker/docker-install-lxc.md
Executable file
38
docker/docker-install-lxc.md
Executable file
@@ -0,0 +1,38 @@
|
||||
## Run as root
|
||||
|
||||
#### Create unprivileged container with fuse enabled
|
||||
|
||||
#### Install prereqs
|
||||
|
||||
```bash
|
||||
apt update && apt upgrade -y
|
||||
apt install -y curl fuse-overlayfs
|
||||
```
|
||||
|
||||
#### Install docker
|
||||
```bash
|
||||
curl -fsSL https://get.docker.com | sh
|
||||
```
|
||||
|
||||
#### Configure fuse driver for docker
|
||||
|
||||
```bash
|
||||
cat <<EOF >/etc/docker/daemon.json
|
||||
{
|
||||
"storage-driver": "fuse-overlayfs"
|
||||
}
|
||||
EOF
|
||||
systemctl restart docker.service
|
||||
```
|
||||
|
||||
Power off and enable fuse in lxc settings
|
||||
|
||||
Download and run essentials script
|
||||
|
||||
Log in as akanealw and switch to root
|
||||
|
||||
```bash
|
||||
adduser akanealw docker
|
||||
```
|
||||
|
||||
Relog as akanealw
|
||||
Reference in New Issue
Block a user