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
Implement a new unit for podman login
Add support for AuthFile to container and kube units
Allow linking between AuthFile and a login unit
Signed-off-by: Ygal Blum <[email protected]>
* If the `name` of the AuthFile ends with `.login`, Quadlet will use the authfile created by the corresponding `.login` file, and the generated systemd service contains a dependency on the `$name-login.service` (or the service name set in the `.login` file). Note that the corresponding `.login` file must exist and must include the `AuthFile` key.
434
+
424
435
### `AutoUpdate=`
425
436
426
437
Indicates whether the container will be auto-updated ([podman-auto-update(1)](podman-auto-update.1.md)). The following values are supported:
@@ -1240,6 +1251,7 @@ Valid options for `[Kube]` are listed below:
1240
1251
1241
1252
|**[Kube] options**|**podman kube play equivalent**|
@@ -1256,6 +1268,16 @@ Valid options for `[Kube]` are listed below:
1256
1268
1257
1269
Supported keys in the `[Kube]` section are:
1258
1270
1271
+
### `AuthFile=`
1272
+
1273
+
Path of the authentication file.
1274
+
1275
+
This is equivalent to the `--authfile` option.
1276
+
1277
+
Special Cases:
1278
+
1279
+
* If the `name` of the AuthFile ends with `.login`, Quadlet will use the authfile created by the corresponding `.login` file, and the generated systemd service contains a dependency on the `$name-login.service` (or the service name set in the `.login` file). Note that the corresponding `.login` file must exist and must include the `AuthFile` key.
1280
+
1259
1281
### `AutoUpdate=`
1260
1282
1261
1283
Indicates whether containers will be auto-updated ([podman-auto-update(1)](podman-auto-update.1.md)). AutoUpdate can be specified multiple times. The following values are supported:
@@ -1728,6 +1750,10 @@ Path of the authentication file.
1728
1750
1729
1751
This is equivalent to the `--authfile` option of `podman build`.
1730
1752
1753
+
Special Cases:
1754
+
1755
+
* If the `name` of the AuthFile ends with `.login`, Quadlet will use the authfile created by the corresponding `.login` file, and the generated systemd service contains a dependency on the `$name-login.service` (or the service name set in the `.login` file). Note that the corresponding `.login` file must exist and must include the `AuthFile` key.
1756
+
1731
1757
### `ContainersConfModule=`
1732
1758
1733
1759
Load the specified containers.conf(5) module. Equivalent to the Podman `--module` option.
@@ -1963,7 +1989,12 @@ This is equivalent to the Podman `--arch` option.
1963
1989
1964
1990
Path of the authentication file.
1965
1991
1966
-
This is equivalent to the Podman `--authfile` option.
1992
+
This is equivalent to the `--authfile` option.
1993
+
1994
+
Special Cases:
1995
+
1996
+
* If the `name` of the AuthFile ends with `.login`, Quadlet will use the authfile created by the corresponding `.login` file, and the generated systemd service contains a dependency on the `$name-login.service` (or the service name set in the `.login` file). Note that the corresponding `.login` file must exist and must include the `AuthFile` key.
1997
+
1967
1998
1968
1999
### `CertDir=`
1969
2000
@@ -2062,6 +2093,102 @@ Override the default architecture variant of the container image.
2062
2093
2063
2094
This is equivalent to the Podman `--variant` option.
2064
2095
2096
+
## Login units [Login]
2097
+
2098
+
Login files are named with a `.login` extension and contain a section `[Login]` describing the
2099
+
login command. The generated service is a one-time command that logs into a registry.
2100
+
2101
+
Using login units allows pulling images from private registries without having to login manually.
2102
+
2103
+
There is only one required key, `Registry`, which defines the URL of the registry to log into.
2104
+
2105
+
To avoid password leaking, Quadlet will set the permissions of the generated service file as 0600.
2106
+
It is recommended to do the same for `.login` unit files.
0 commit comments