Advertisement
fatherlinux

Podman Network Problem

Oct 21st, 2021
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1. [root@rhel8 fatherlinux]# rm -rf .config/containers/
  2. libpod.conf mounts.conf storage.conf
  3. [root@rhel8 fatherlinux]# rm -rf .config/containers/
  4. [root@rhel8 fatherlinux]# rm -rf .local/share/containers/
  5. [root@rhel8 fatherlinux]# yum module install container-tools
  6. Updating Subscription Management repositories.
  7.  
  8. This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
  9.  
  10. Last metadata expiration check: 0:09:53 ago on Thu 21 Oct 2021 11:58:39 AM EDT.
  11. Dependencies resolved.
  12. ===============================================================================================================================
  13. Package Architecture Version Repository Size
  14. ===============================================================================================================================
  15. Installing group/module packages:
  16. cockpit-podman noarch 32-2.module+el8.4.0+11990+22932769 rhel-8-for-x86_64-appstream-rpms 410 k
  17. crun x86_64 0.20.1-1.module+el8.4.0+11822+6cc1e7d7 rhel-8-for-x86_64-appstream-rpms 192 k
  18. skopeo x86_64 1:1.3.1-5.module+el8.4.0+11990+22932769 rhel-8-for-x86_64-appstream-rpms 7.0 M
  19. toolbox noarch 0.0.8-1.module+el8.4.0+11822+6cc1e7d7 rhel-8-for-x86_64-appstream-rpms 16 k
  20. udica noarch 0.2.4-2.module+el8.4.0+11822+6cc1e7d7 rhel-8-for-x86_64-appstream-rpms 51 k
  21. Installing dependencies:
  22. python3-pip noarch 9.0.3-19.el8 rhel-8-for-x86_64-appstream-rpms 20 k
  23. python36 x86_64 3.6.8-2.module+el8.1.0+3334+5cb623d7 rhel-8-for-x86_64-appstream-rpms 19 k
  24. yajl x86_64 2.1.0-10.el8 rhel-8-for-x86_64-appstream-rpms 41 k
  25. Installing module profiles:
  26. container-tools/common
  27.  
  28.  
  29. Transaction Summary
  30. ===============================================================================================================================
  31. Install 8 Packages
  32.  
  33. Total download size: 7.8 M
  34. Installed size: 27 M
  35. Is this ok [y/N]: y
  36. Downloading Packages:
  37. (1/8): python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64.rpm 29 kB/s | 19 kB 00:00
  38. (2/8): python3-pip-9.0.3-19.el8.noarch.rpm 29 kB/s | 20 kB 00:00
  39. (3/8): yajl-2.1.0-10.el8.x86_64.rpm 53 kB/s | 41 kB 00:00
  40. (4/8): toolbox-0.0.8-1.module+el8.4.0+11822+6cc1e7d7.noarch.rpm 85 kB/s | 16 kB 00:00
  41. (5/8): crun-0.20.1-1.module+el8.4.0+11822+6cc1e7d7.x86_64.rpm 342 kB/s | 192 kB 00:00
  42. (6/8): cockpit-podman-32-2.module+el8.4.0+11990+22932769.noarch.rpm 549 kB/s | 410 kB 00:00
  43. (7/8): udica-0.2.4-2.module+el8.4.0+11822+6cc1e7d7.noarch.rpm 247 kB/s | 51 kB 00:00
  44. (8/8): skopeo-1.3.1-5.module+el8.4.0+11990+22932769.x86_64.rpm 2.6 MB/s | 7.0 MB 00:02
  45. -------------------------------------------------------------------------------------------------------------------------------
  46. Total 2.1 MB/s | 7.8 MB 00:03
  47. Running transaction check
  48. Transaction check succeeded.
  49. Running transaction test
  50. Transaction test succeeded.
  51. Running transaction
  52. Preparing : 1/1
  53. Installing : python3-pip-9.0.3-19.el8.noarch 1/8
  54. Installing : python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 2/8
  55. Running scriptlet: python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 2/8
  56. Installing : yajl-2.1.0-10.el8.x86_64 3/8
  57. Installing : crun-0.20.1-1.module+el8.4.0+11822+6cc1e7d7.x86_64 4/8
  58. Installing : udica-0.2.4-2.module+el8.4.0+11822+6cc1e7d7.noarch 5/8
  59. Installing : skopeo-1:1.3.1-5.module+el8.4.0+11990+22932769.x86_64 6/8
  60. Installing : toolbox-0.0.8-1.module+el8.4.0+11822+6cc1e7d7.noarch 7/8
  61. Installing : cockpit-podman-32-2.module+el8.4.0+11990+22932769.noarch 8/8
  62. Running scriptlet: cockpit-podman-32-2.module+el8.4.0+11990+22932769.noarch 8/8
  63. Verifying : yajl-2.1.0-10.el8.x86_64 1/8
  64. Verifying : python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 2/8
  65. Verifying : python3-pip-9.0.3-19.el8.noarch 3/8
  66. Verifying : crun-0.20.1-1.module+el8.4.0+11822+6cc1e7d7.x86_64 4/8
  67. Verifying : cockpit-podman-32-2.module+el8.4.0+11990+22932769.noarch 5/8
  68. Verifying : toolbox-0.0.8-1.module+el8.4.0+11822+6cc1e7d7.noarch 6/8
  69. Verifying : skopeo-1:1.3.1-5.module+el8.4.0+11990+22932769.x86_64 7/8
  70. Verifying : udica-0.2.4-2.module+el8.4.0+11822+6cc1e7d7.noarch 8/8
  71. Installed products updated.
  72.  
  73. Installed:
  74. cockpit-podman-32-2.module+el8.4.0+11990+22932769.noarch crun-0.20.1-1.module+el8.4.0+11822+6cc1e7d7.x86_64
  75. python3-pip-9.0.3-19.el8.noarch python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64
  76. skopeo-1:1.3.1-5.module+el8.4.0+11990+22932769.x86_64 toolbox-0.0.8-1.module+el8.4.0+11822+6cc1e7d7.noarch
  77. udica-0.2.4-2.module+el8.4.0+11822+6cc1e7d7.noarch yajl-2.1.0-10.el8.x86_64
  78.  
  79. Complete!
  80. [fatherlinux@rhel8 ~]$ podman network ls
  81. NETWORK ID NAME VERSION PLUGINS
  82. 6129a34887d3 container-net 0.4.0 bridge,portmap,firewall,tuning,dnsname
  83. [fatherlinux@rhel8 ~]$ podman pod create --network container-net --network-alias test-pod --hostname test-01 --name test-pod
  84. 2662f14d2d0df0663eb5321c1d5749af5a4b9cb9ed20aad5656a93dcb1f6d3f4
  85. [fatherlinux@rhel8 ~]$ podman run --rm -it --pod test-pod --network=container-net --dns-search dns.podman --name test-01 --network-alias test-01 docker.io/alpine /bin/sh
  86. Trying to pull docker.io/library/alpine:latest...
  87. Getting image source signatures
  88. Copying blob a0d0a0d46f8b done
  89. Copying config 14119a10ab done
  90. Writing manifest to image destination
  91. Storing signatures
  92. / # ping 8.8.8.8
  93. PING 8.8.8.8 (8.8.8.8): 56 data bytes
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement