.
This commit is contained in:
@@ -1,3 +1,20 @@
|
|||||||
|
## Create a container
|
||||||
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
||||||
|
|
||||||
|
## Setup container for docker
|
||||||
lxc config set $LXC_CONTAINER_NAME "security.nesting" "true" && \
|
lxc config set $LXC_CONTAINER_NAME "security.nesting" "true" && \
|
||||||
#executar o ficheiro sobre o container setup-ubuntu.sh
|
|
||||||
|
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
||||||
|
|
||||||
|
## Install docker
|
||||||
|
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
|
||||||
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# setup docker
|
|
||||||
curl -s "https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/host/ubuntu-fuse-setup.sh" | bash
|
|
||||||
|
|
||||||
#install portainer
|
|
||||||
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