Skip to content

Commit

Permalink
Container creation without prompts.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Aug 24, 2024
1 parent a843750 commit f751c04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/gel/lxc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ This section documents the processes of configuring LXC on distros supported by
#### Config files
- Container config files: `/var/lib/lxc/<name>/config`

#### Container creation from official templates
When creating containers from official templates, you'll be presented with a list of available distros, alongwith release names and CPU architectures. [Visit for the full list](https://images.linuxcontainers.org).

To select a source image directly without the selection prompt, use the following command.

```sh
lxc-create -t download -n "<name>" -- --dist <distro> --release <release> --arch <arch>
```

#### Assign static IPs
_From [Setup network bridge in lxc-net](https://stanislas.blog/2018/02/setup-network-bridge-lxc-net/)._

Expand Down
2 changes: 1 addition & 1 deletion src/gel/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For bare-metal, virtual machines and LXC containers. Do <u>not</u> run native install scripts other than on new machines.

1. On any of the supported distros, make sure `curl` is available.
2. Execute `sh <(curl -Ls https://github.com/ltgcgo/gel/releases/latest/download/install.sh)`. (or `sh <(curl -Ls https://codeberg.org/ltgc/gel/releases/download/latest/install.sh)`)
2. Execute `sh <(curl -Ls https://github.com/ltgcgo/gel/releases/latest/download/install.sh)`. (or `sh <(curl -Ls https://codeberg.org/ltgc/gel/releases/download/latest/install.sh)`, use `GEL_SLIM=1` to enable slim installation)
3. Connect via SSH with `ssh -p 1122 <serverIP>`. User passwords won't change, but SSH settings will. See the [SSH](#ssh) section for details.

### Containers
Expand Down

0 comments on commit f751c04

Please sign in to comment.