Skip to content

Commit

Permalink
doc/howto/instances_create: Add an example of application container
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Oct 22, 2024
1 parent d074472 commit a749b1c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/howto/instances_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,22 @@ Check the contents of an existing instance configuration ([`incus config show <i

The following examples use [`incus launch`](incus_launch.md), but you can use [`incus init`](incus_create.md) in the same way.

### Launch a container
### Launch a system container

To launch a container with an Ubuntu 22.04 image from the `images` server using the instance name `ubuntu-container`, enter the following command:
To launch a system container with an Ubuntu 22.04 image from the `images` server using the instance name `ubuntu-container`, enter the following command:

incus launch images:ubuntu/22.04 ubuntu-container

### Launch an application container

To launch an application (OCI) container, you first need to add an image registry:

incus remote add oci-docker https://docker.io --protocol=oci

And then can launch a container from one of its images:

incus launch oci-docker:hello-world --ephemeral --console

### Launch a virtual machine

To launch a virtual machine with an Ubuntu 22.04 image from the `images` server using the instance name `ubuntu-vm`, enter the following command:
Expand Down

0 comments on commit a749b1c

Please sign in to comment.