Skip to content

Commit 8b289bf

Browse files
committed
Add shared file with hyperlinks
1 parent 2c57243 commit 8b289bf

File tree

7 files changed

+50
-32
lines changed

7 files changed

+50
-32
lines changed

source/concepts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Create a pod by running
4949
5050
Start the pod by running
5151

52-
.. code::bash
52+
.. code:: bash
5353
5454
podman pod start pod-name
5555

source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
exclude_patterns = []
2929

3030

31+
with open("hyperlink-targets.rst", encoding="utf-8") as _hyperlink_targets:
32+
rst_epilog = _hyperlink_targets.read()
3133

3234
# -- Options for HTML output -------------------------------------------------
3335
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

source/hyperlink-targets.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _Docker Desktop: https://www.docker.com/products/docker-desktop/
2+
.. _Docker Engine: https://docs.docker.com/engine/
3+
.. _Podman Desktop: https://podman-desktop.io/
4+
.. _Podman machine: https://podman-desktop.io/docs/podman/creating-a-podman-machine
5+
.. _Podman: https://podman.io/
6+
.. _WSL: https://learn.microsoft.com/en-us/windows/wsl/
7+
.. _PowerShell: https://learn.microsoft.com/en-us/powershell/

source/index.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
Podman Desktop Tutorial
77
=======================
88

9-
`Podman <https://podman.io/>`_ is an open source container management tool similar to `Docker Engine <https://docs.docker.com/engine/>`_. And `Podman Desktop <https://podman-desktop.io/>`_ is an open source client for Podman similar to `Docker Desktop <https://www.docker.com/products/docker-desktop/>`_.
9+
`Podman`_ is an open source container management tool similar to `Docker Engine`_. And `Podman Desktop`_ is open source client for Podman similar to `Docker Desktop`_.
10+
11+
.. note::
12+
13+
If you have experience with Docker, you might want to jump to :doc:`full-example`.
14+
15+
This tutorial will guide you on how to use Podman and Podman Desktop.
1016

1117
============================== =================================== ======================================
1218
Feature Podman Docker

source/install.rst

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
11
Install
22
=======
33

4-
Visit `Installing Podman Desktop <https://podman-desktop.io/docs/installation>`_ section from the `Podman Desktop documentation <https://podman-desktop.io/docs/>`_ for the steps to install Podman Desktop on Windows, macOS, and GNU/Linux.
4+
Visit `Installing Podman Desktop <https://podman-desktop.io/docs/installation>`_ section from the `Podman Desktop documentation <https://podman-desktop.io/docs/>`_ for the steps to install `Podman Desktop`_` on Windows, macOS, and GNU/Linux.
55

6-
On Windows and macOS, Podman Desktop will, by default, create a `Podman machine <https://podman-desktop.io/docs/podman/creating-a-podman-machine>`_ because Windows and macOS cannot run containers natively.
6+
On Windows and macOS, `Podman Desktop`_` will, by default, create a `Podman machine`_ because Windows and macOS cannot run containers natively.
77

8-
On Windows, you can use any `Windows Subsystem for Linux (WSL) <https://learn.microsoft.com/en-us/windows/wsl/>`_ to run Podman and have Podman Desktop managing Podman via SSH. The next section will provide more details for this.
8+
On Windows, you can use any Windows Subsystem for Linux (`WSL`_) to run Podman and have Podman Desktop managing Podman via SSH. The next section will provide more details for this.
99

1010
Configure Remote Access
1111
-----------------------
1212

1313
1. Enable remote connection on Podman Desktop's ``Settings``, ``Preferences``, ``Extension: Podman``.
14-
2. Generate a SSH key.
14+
15+
2. Generate a SSH key on that you use, for example, the Windows machine.
1516

1617
.. code:: bash
1718
1819
ssh-keygen -t ed25519
1920
20-
3. Copy the public SSH key to the remote machine's ``~/.ssh/authorized_keys``.
21-
4. On the GNU/Linux remote machine, enable Podman's socket.
21+
3. On the GNU/Linux remote machine, install the SSH server.
22+
23+
4. On the GNU/Linux remote machine, start and enable the SSH server.
24+
25+
5. Copy the SSH key to ``~/.ssh/authorized_keys`` from the GNU/Linux remote machine.
26+
27+
6. Test the SSH connection from the Windows machien to the GNU/Linux remote machine.
28+
29+
7. On the GNU/Linux remote machine, enable Podman's socket.
2230

2331
.. code:: bash
2432
25-
sudo systemctl enable podman.socket
26-
sudo systemctl start podman.socket
33+
systemctl enable --user podman.socket
34+
systemctl start --user podman.socket
2735
28-
5. On the GNU/Linux remote machine, confirm that the Podman's socket is enabled.
36+
8. On the GNU/Linux remote machine, confirm that the Podman's socket is enabled.
2937

3038
.. code:: bash
3139
3240
systemctl status --user podman.socket
3341
34-
6. Add the connection to the remote Podman.
42+
9. Add the connection to the remote Podman.
3543

36-
On the Windows machine, use `PowerShell <https://learn.microsoft.com/en-us/powershell/>`_ to run
44+
On the Windows machine, use `PowerShell`_ to run
3745

3846
.. code:: powershell
3947
4048
podman system connection `
4149
add $env:username `
42-
--identity c:\Users\$env:username\.ssh\id_rsa `
50+
--identity c:\Users\$env:username\.ssh\id_ed25519 `
4351
ssh://$env:username@localhost:22/run/user/1000/podman/podman.sock
4452
45-
as described in `Podman Remote clients for macOS and Windows <https://github.com/containers/podman/blob/main/docs/tutorials/mac_win_client.md>`_.
46-
47-
7. Optionally, set the remote Podman as the default.
48-
49-
On the Windows machine, use `PowerShell <https://learn.microsoft.com/en-us/powershell/>`_ to run
53+
10. Confirm that the connection to the remote Podman was created.
5054

5155
.. code:: powershell
5256
53-
podman system connection default $env:username
57+
podman system connection ls

source/k8s-port.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,16 @@ that is expected to return ::
173173
Windows Subsystem for Linux (WLS)
174174
---------------------------------
175175

176-
Windows 10
177-
^^^^^^^^^^
176+
.. important::
177+
178+
`Windows 10 reached the end of support <https://support.microsoft.com/en-us/windows/windows-10-support-ends-on-october-14-2025-2ca8b313-1946-43d3-b55c-2b95b107f281>`_ on 14 October 14 2025.
179+
180+
.. important::
181+
182+
The new `Mirrored mode networking <https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking>`_ is available on Windows 11 22H2 and higher. Old versions uses a `NAT (Network Address Translation) <https://learn.microsoft.com/en-us/windows/wsl/networking#default-networking-mode-nat>`_ based architecture for networking.
178183

179-
WSL uses a `NAT (Network Address Translation) <https://learn.microsoft.com/en-us/windows/wsl/networking#default-networking-mode-nat>`_ based architecture for networking. This allows the use of the `loopback <https://en.wikipedia.org/wiki/Loopback>`_ address from Windows to access the machine running Podman, for example
184+
185+
WSL allows the use of the `loopback <https://en.wikipedia.org/wiki/Loopback>`_ address from Windows to access the machine running Podman, for example
180186

181187
.. code:: powershell
182188
@@ -221,10 +227,3 @@ And use the IP address
221227
.. code:: powershell
222228
223229
curl.exe http://172.25.11.50:8080
224-
225-
Windows 11
226-
^^^^^^^^^^
227-
228-
.. important::
229-
230-
The new `Mirrored mode networking <https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking>`_ is available on Windows 11 22H2 and higher.

source/k8s-volume.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Example with HostPathVolumeSource
2525

2626
.. WARNING::
2727

28-
Podman is not able to access files in a WSL2 machine, for example ``\\wsl.localhost\Ubuntu\home\user\file``. This feature was requested in Podman's GitHub project issue `17986 <https://github.com/containers/podman/issues/17986>`_ and `21813 <https://github.com/containers/podman/issues/21813>`_.
28+
Podman is not able to access files in a `WSL`_ machine, for example ``\\wsl.localhost\Ubuntu\home\user\file``. This feature was requested in Podman's GitHub project issue `17986 <https://github.com/containers/podman/issues/17986>`_ and `21813 <https://github.com/containers/podman/issues/21813>`_.
2929

3030
.. ATTENTION::
3131

@@ -98,7 +98,7 @@ Example with HostPathVolumeSource
9898

9999
.. WARNING::
100100

101-
Podman is not able to access files in a WSL2 machine, for example ``\\wsl.localhost\Ubuntu\home\user\file``. This feature was requested in Podman's GitHub project issue `17986 <https://github.com/containers/podman/issues/17986>`_ and `21813 <https://github.com/containers/podman/issues/21813>`_.
101+
Podman is not able to access files in a `WSL`_ machine, for example ``\\wsl.localhost\Ubuntu\home\user\file``. This feature was requested in Podman's GitHub project issue `17986 <https://github.com/containers/podman/issues/17986>`_ and `21813 <https://github.com/containers/podman/issues/21813>`_.
102102

103103
.. ATTENTION::
104104

0 commit comments

Comments
 (0)