Compare commits
2 Commits
82a5971502
...
6c4cbc7fed
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c4cbc7fed | |||
| 49d190081b |
@@ -15,15 +15,19 @@ then execute
|
|||||||
lxc launch ubuntu $LXC_CONTAINER_NAME
|
lxc launch ubuntu $LXC_CONTAINER_NAME
|
||||||
|
|
||||||
## Setup container for docker
|
## Setup container for docker
|
||||||
curl - "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash $LXC_CONTAINER_NAME
|
curl -s "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash -s $LXC_CONTAINER_NAME
|
||||||
|
|
||||||
|
|
||||||
## update container
|
## update ubuntu container
|
||||||
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
lxc exec $LXC_CONTAINER_NAME -- bash -c "apt update -y && apt upgrade -y"
|
||||||
|
|
||||||
## Install fuse and docker on lxc container
|
## Install fuse and 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 "
|
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 "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash "
|
lxc exec $LXC_CONTAINER_NAME -- bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash"
|
||||||
|
|
||||||
|
#confirm container ip address
|
||||||
|
lxc exec $LXC_CONTAINER_NAME -- bash -c "ip a"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user