.
This commit is contained in:
@@ -4,13 +4,13 @@ lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
||||
## Setup container for docker
|
||||
lxc config set $LXC_CONTAINER_NAME "security.nesting" "true" && \
|
||||
|
||||
## update container
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
||||
|
||||
## Install docker
|
||||
## Install docker on lxc container
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash "
|
||||
|
||||
|
||||
#install portainer
|
||||
#install Portainer
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest && pause(3) && docker container list"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user