From 0d0e2b168a557d29b4cdfce8d7168541e932f8c4 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 16 Oct 2024 07:28:04 +0200 Subject: [PATCH] doc: update container notes - Expand on Docker Hello World - Add more pictures to help break up the content a bit Signed-off-by: Joachim Wiberg --- doc/container.md | 16 ++++++++++++++++ doc/img/docker-hello-world.svg | 4 ++++ doc/img/shield-checkmark.svg | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 doc/img/docker-hello-world.svg create mode 100644 doc/img/shield-checkmark.svg diff --git a/doc/container.md b/doc/container.md index 97fc4181..022ef70e 100644 --- a/doc/container.md +++ b/doc/container.md @@ -105,11 +105,23 @@ application to run. > unlike virtualization, containers reuse the host's CPU and kernel. +Hello World + ### Examples Classic Hello World: admin@example:/> container run docker://hello-world + Starting docker://hello-world :: use Ctrl-p Ctrl-q to detach + Trying to pull docker.io/library/hello-world:latest... + Getting image source signatures + Copying blob c1ec31eb5944 done + Copying config d2c94e258d done + Writing manifest to image destination + Storing signatures + + Hello from Docker! + This message shows that your installation appears to be working correctly. Persistent web server using nginx, sharing the host's network: @@ -223,6 +235,10 @@ archive, which helps greatly with container upgrades (see below): Upgrading a Container Image --------------------------- +Hello World + +The applications in your container are an active part of the system as a +whole, so make it a routine to keep your container images up-to-date! > **Note:** the default writable layer is lost when upgrading the image. > Use named volumes for content that you want to persist across upgrades. diff --git a/doc/img/docker-hello-world.svg b/doc/img/docker-hello-world.svg new file mode 100644 index 00000000..d35d9a13 --- /dev/null +++ b/doc/img/docker-hello-world.svg @@ -0,0 +1,4 @@ + + + +
> Hello
World
\ No newline at end of file diff --git a/doc/img/shield-checkmark.svg b/doc/img/shield-checkmark.svg new file mode 100644 index 00000000..01064567 --- /dev/null +++ b/doc/img/shield-checkmark.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file