|
1 | 1 | Install |
2 | 2 | ======= |
3 | 3 |
|
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. |
5 | 5 |
|
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. |
7 | 7 |
|
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. |
9 | 9 |
|
10 | 10 | Configure Remote Access |
11 | 11 | ----------------------- |
12 | 12 |
|
13 | 13 | 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. |
15 | 16 |
|
16 | 17 | .. code:: bash |
17 | 18 |
|
18 | 19 | ssh-keygen -t ed25519 |
19 | 20 |
|
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. |
22 | 30 |
|
23 | 31 | .. code:: bash |
24 | 32 |
|
25 | | - sudo systemctl enable podman.socket |
26 | | - sudo systemctl start podman.socket |
| 33 | + systemctl enable --user podman.socket |
| 34 | + systemctl start --user podman.socket |
27 | 35 |
|
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. |
29 | 37 |
|
30 | 38 | .. code:: bash |
31 | 39 |
|
32 | 40 | systemctl status --user podman.socket |
33 | 41 |
|
34 | | -6. Add the connection to the remote Podman. |
| 42 | +9. Add the connection to the remote Podman. |
35 | 43 |
|
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 |
37 | 45 |
|
38 | 46 | .. code:: powershell |
39 | 47 |
|
40 | 48 | podman system connection ` |
41 | 49 | add $env:username ` |
42 | | - --identity c:\Users\$env:username\.ssh\id_rsa ` |
| 50 | + --identity c:\Users\$env:username\.ssh\id_ed25519 ` |
43 | 51 | ssh://$env:username@localhost:22/run/user/1000/podman/podman.sock |
44 | 52 |
|
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. |
50 | 54 |
|
51 | 55 | .. code:: powershell |
52 | 56 |
|
53 | | - podman system connection default $env:username |
| 57 | + podman system connection ls |
0 commit comments