Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:latest
FROM alpine:3.15
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 3.15, not the (recent) 3.18?


RUN \
apk add --update --no-cache bash curl lxc lxcfs python3 py3-requests py3-yaml arch-install-scripts tar zstd \
apk add --update --no-cache bash curl lxc lxc-templates bridge lxcfs python3 py3-requests py3-yaml arch-install-scripts tar zstd \
&& echo "lxc.lxcpath = /data" > /etc/lxc/lxc.conf \
&& ln -sf /scripts/shellwrapper /bin/sh \
&& echo "PS1='\\h (outer docker container, to enter inner container use: lxc-attach -n machine) \\w # '" > /root/.bashrc
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This project allows to use a single LXC container within a docker container to g
* Provide "home containers" for your users, each with own ssh access and persistent state
* Run a linux remote desktop server on kubernetes
* Easily run statefull software (like froxlor control panel or plesk) on docker/kubernetes
* Run using other linux flavors - requires systemd - https://linuxcontainers.org/lxc/getting-started/

### Ideas / Backlog

Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build . --tag lxc
4 changes: 4 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
docker run --privileged --hostname lxctest1 -v /tmp/lxc:/data -e USE_LXCFS=false -e DISTRIBUTION=alpine lxc
#docker run --privileged --hostname lxctest1 -v /tmp:/data -e USE_LXCFS=false -e DISTRIBUTION=alpine -it lxc ash
#/usr/bin/python3 /scripts/launch.py
4 changes: 4 additions & 0 deletions scripts/lxc-config
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ lxc.rootfs.path=/data/rootfs

# Extra mounts for additional volumes which can be mounted to /vol on docker
lxc.mount.entry = /vol vol none rbind 0 0

lxc.apparmor.allow_incomplete = 1

# lxc.aa_allow_incomplete = 1