docs: update docker/docker-install-lxc

This commit is contained in:
2024-04-17 03:43:14 +00:00
parent ea727c3359
commit bd54857b2e

View File

@@ -1,21 +1,30 @@
## Run as root
---
title: docker-install-lxc
description:
published: true
date: 2024-04-17T03:43:13.192Z
tags:
editor: markdown
dateCreated: 2024-04-15T20:42:02.970Z
---
#### Create unprivileged container with fuse enabled
# Run as root
#### Install prereqs
Create unprivileged container with fuse enabled
### Install prereqs
```bash
apt update && apt upgrade -y
apt install -y curl fuse-overlayfs
```
#### Install docker
### Install docker
```bash
curl -fsSL https://get.docker.com | sh
```
#### Configure fuse driver for docker
### Configure fuse driver for docker
```bash
cat <<EOF >/etc/docker/daemon.json
{
@@ -25,8 +34,6 @@ 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