You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: documentation/modules/ROOT/pages/containerfile.adoc
+16-10
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
:project-name: tutorial-app
4
4
5
-
A https://docs.docker.com/engine/reference/builder/[Dockerfile] is where you'll estabilish the definitions used to build a container image. It uses three main keywords/commands:
5
+
A Containerfile, also known as a Dockerfile, is where you'll establish the definitions used to build a container image. It uses three main keywords/commands:
6
6
7
7
* FROM: where you'll inform the base image used to build your own image
8
8
* COPY: where you'll add resources (files) to your image
@@ -44,22 +44,28 @@ mvn package
44
44
----
45
45
46
46
47
-
== Building a Dockerfile
47
+
== Building a Containerfile
48
48
49
-
Create a file named Dockerfile.
49
+
Create a file named Containerfile.
50
50
51
51
[.console-input]
52
52
[source,bash,subs="+macros,+attributes"]
53
53
----
54
-
cat <<EOF >Dockerfile
55
-
FROM registry.access.redhat.com/ubi8/openjdk-17
54
+
cat <<EOF >Containerfile
55
+
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.18-4
Copy file name to clipboardexpand all lines: documentation/modules/ROOT/pages/imagemanagement.adoc
+37-50
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
An image can be used to create and run containers. It is like a template, containing instructions on how to build the container. Images are the starting point for any container related activity, and can be thought of as a snapshot in a virtual machine (VM) environment.
4
4
5
-
== Building an image based on a Dockerfile
5
+
== Building an image based on a Containerfile (aka Dockerfile)
6
6
7
-
With the Dockerfile that we created in the last step, let's build a container image:
7
+
With the Containerfile that we created in the last step, let's build a container image:
8
8
9
9
[.console-input]
10
10
[source,bash,subs="+macros,+attributes"]
@@ -17,25 +17,31 @@ You'll see an output like this:
17
17
[.console-output]
18
18
[source,text]
19
19
----
20
-
Sending build context to Docker daemon 10.95MB
21
-
Step 1/4 : FROM registry.access.redhat.com/ubi8/openjdk-11
@@ -54,11 +60,11 @@ You'll see at least these two outputs:
54
60
[source,text]
55
61
----
56
62
REPOSITORY TAG IMAGE ID CREATED SIZE
57
-
my-image latest 87776d35fc85 4 minutes ago 516MB
58
-
registry.access.redhat.com/ubi8/openjdk-11 lateste502114b0d20 2 months ago 505MB
63
+
my-image latest 87776d35fc85 4 minutes ago 392MB
64
+
registry.access.redhat.com/ubi9/openjdk-21-runtime 1.18-4 80786be7434f3 weeks ago 375 MB
59
65
----
60
66
61
-
Your image is the `my-image` and the `registry.access.redhat.com/ubi8/openjdk-11` is the image used to build yours.
67
+
Your image is the `my-image` and the `registry.access.redhat.com/ubi9/openjdk-21` is the image used to build yours.
62
68
63
69
== Removing images
64
70
@@ -70,36 +76,17 @@ To remove your just created image:
70
76
docker image rm my-image
71
77
----
72
78
73
-
// == Exploring the Desktop interfaces
79
+
== Exploring the Desktop interface
74
80
75
-
// Let's take a look at image management in the Desktop interfaces.
81
+
Let's take a look at image management in the Desktop interfaces.
76
82
77
-
// [tabs]
78
-
// ====
79
-
// Docker Desktop::
80
-
// +
81
-
// --
82
-
// Using Docker Desktop, we can see our newly created image in the *Images* tab. Here, we have information about the newly created image, including the the image ID, tag, creation date, and size of the image. Let's select the image name to see more information about the image.
// Here, we see information about the image hierarchy, as well as the various layers added, any vulnerabilities that may exist, and packages added.
86
+
With Podman Desktop, we can see our newly created image in the *Images* tab. We can find information about the newly created image, including the the image ID, tag, creation date, and size of the image. Let's select the image name to see more information about the image.
87
87
88
-
// image::docker-desktop-image-info.png[alt="Docker Desktop Image Info tab", align="center"]
// With Podman Desktop, we can see our newly created image in the *Images* tab. Here, we have information about the newly created image, including the the image ID, tag, creation date, and size of the image. Let's select the image name to see more information about the image.
Copy file name to clipboardexpand all lines: documentation/modules/ROOT/pages/runningcontainers.adoc
+9-7
Original file line number
Diff line number
Diff line change
@@ -127,13 +127,15 @@ You now got an output like this:
127
127
[.console-output]
128
128
[source,text]
129
129
----
130
-
__ ____ __ _____ ___ __ ____ ______
131
-
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
132
-
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
133
-
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
134
-
2020-10-07 18:36:05,081 INFO [io.quarkus] (main) tutorial-app 1.0-SNAPSHOT on JVM (powered by Quarkus 1.8.2.Final) started in 0.651s. Listening on: http://0.0.0.0:8080
135
-
2020-10-07 18:36:05,105 INFO [io.quarkus] (main) Profile prod activated.
136
-
2020-10-07 18:36:05,105 INFO [io.quarkus] (main) Installed features: [cdi, resteasy]
130
+
INFO exec -a "java" java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -cp "." -jar /deployments/quarkus-run.jar
131
+
INFO running in /deployments
132
+
__ ____ __ _____ ___ __ ____ ______
133
+
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
134
+
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
135
+
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
136
+
2024-05-22 10:53:37,988 INFO [io.quarkus] (main) tutorial-app 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.10.1) started in 0.455s. Listening on: http://0.0.0.0:8080
137
+
2024-05-22 10:53:37,989 INFO [io.quarkus] (main) Profile prod activated.
0 commit comments