nsaunders

Untitled

Sep 26th, 2020
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.13 KB | None | 0 0
  1. root $
  2. root $ docker run --name alice --network foo -p 3307:3307 -tide MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest
  3. 7041df2ca8230d1cd6b6dc2b40bbb2fab336caf32aa8ddb7b257be13ed5fc60d
  4. root $
  5. root $ docker run --name bob --network foo -p 3308:3308 -tide MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest
  6. f0c0ffa9ee26ea67d7f4f9352ed46c05871c9600787985f10bbe3586e2601f4f
  7. root $
  8. root $ docker network inspect foo
  9. [
  10. {
  11. "Name": "foo",
  12. "Id": "94f944a05b0ee66779ee469faa84a53a7db19262cf5c4a234268081153512e5c",
  13. "Created": "2020-09-26T14:34:15.968639841-07:00",
  14. "Scope": "local",
  15. "Driver": "bridge",
  16. "EnableIPv6": false,
  17. "IPAM": {
  18. "Driver": "default",
  19. "Options": {},
  20. "Config": [
  21. {
  22. "Subnet": "172.21.0.0/16",
  23. "Gateway": "172.21.0.1"
  24. }
  25. ]
  26. },
  27. "Internal": false,
  28. "Attachable": false,
  29. "Ingress": false,
  30. "ConfigFrom": {
  31. "Network": ""
  32. },
  33. "ConfigOnly": false,
  34. "Containers": {
  35. "7041df2ca8230d1cd6b6dc2b40bbb2fab336caf32aa8ddb7b257be13ed5fc60d": {
  36. "Name": "alice",
  37. "EndpointID": "5feea1c8cd5bcf2f126812ddb9c687a67e185aeab5e25c33128f57d95d5ea713",
  38. "MacAddress": "02:42:ac:15:00:02",
  39. "IPv4Address": "172.21.0.2/16",
  40. "IPv6Address": ""
  41. },
  42. "f0c0ffa9ee26ea67d7f4f9352ed46c05871c9600787985f10bbe3586e2601f4f": {
  43. "Name": "bob",
  44. "EndpointID": "325b4ef28034b1baa0b99958f1e64c92fc3dd083b17228233f974e907f57d81a",
  45. "MacAddress": "02:42:ac:15:00:03",
  46. "IPv4Address": "172.21.0.3/16",
  47. "IPv6Address": ""
  48. }
  49. },
  50. "Options": {},
  51. "Labels": {}
  52. }
  53. ]
  54. root $
  55. root $ docker exec -it alice bash
  56. bash-4.2#
  57. bash-4.2# whoami
  58. root
  59. bash-4.2#
  60. bash-4.2# yum install -y iputils
  61. Loaded plugins: ovl
  62. mysql-connectors-community | 2.5 kB 00:00:00
  63. mysql-tools-community | 2.5 kB 00:00:00
  64. mysql80-community | 2.5 kB 00:00:00
  65. mysql80-server-minimal | 2.5 kB 00:00:00
  66. ol7_latest | 2.7 kB 00:00:00
  67. (1/4): mysql80-server-minimal/x86_64/primary_db | 19 kB 00:00:00
  68. (2/4): mysql-tools-community/x86_64/primary_db | 76 kB 00:00:00
  69. (3/4): mysql-connectors-community/x86_64/primary_db | 62 kB 00:00:00
  70. (4/4): mysql80-community/x86_64/primary_db | 115 kB 00:00:01
  71. (1/3): ol7_latest/x86_64/group | 660 kB 00:00:02
  72. (2/3): ol7_latest/x86_64/updateinfo | 2.9 MB 00:00:09
  73. (3/3): ol7_latest/x86_64/primary_db | 36 MB 00:01:07
  74. Resolving Dependencies
  75. --> Running transaction check
  76. ---> Package iputils.x86_64 0:20160308-10.el7 will be installed
  77. --> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
  78. --> Running transaction check
  79. ---> Package systemd.x86_64 0:219-73.0.3.el7_8.9 will be installed
  80. --> Processing Dependency: systemd-libs = 219-73.0.3.el7_8.9 for package: systemd-219-73.0.3.el7_8.9.x86_64
  81. --> Processing Dependency: kmod >= 18-4 for package: systemd-219-73.0.3.el7_8.9.x86_64
  82. --> Processing Dependency: dbus for package: systemd-219-73.0.3.el7_8.9.x86_64
  83. --> Processing Dependency: acl for package: systemd-219-73.0.3.el7_8.9.x86_64
  84. --> Processing Dependency: libcryptsetup.so.12(CRYPTSETUP_2.0)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  85. --> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  86. --> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  87. --> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  88. --> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  89. --> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  90. --> Processing Dependency: libdw.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  91. --> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  92. --> Processing Dependency: libcryptsetup.so.12()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  93. --> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  94. --> Running transaction check
  95. ---> Package acl.x86_64 0:2.2.51-15.el7 will be installed
  96. ---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be installed
  97. --> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  98. --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  99. --> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  100. --> Processing Dependency: libjson-c.so.2()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  101. ---> Package dbus.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
  102. --> Processing Dependency: dbus-libs(x86-64) = 1:1.10.24-14.0.1.el7_8 for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  103. --> Processing Dependency: libdbus-1.so.3(LIBDBUS_PRIVATE_1.10.24)(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  104. --> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  105. --> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  106. ---> Package elfutils-libs.x86_64 0:0.176-4.el7 will be installed
  107. --> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-4.el7.x86_64
  108. ---> Package kmod.x86_64 0:20-28.0.3.el7 will be installed
  109. --> Processing Dependency: /usr/bin/xz for package: kmod-20-28.0.3.el7.x86_64
  110. --> Processing Dependency: /usr/bin/nm for package: kmod-20-28.0.3.el7.x86_64
  111. --> Processing Dependency: dracut for package: kmod-20-28.0.3.el7.x86_64
  112. ---> Package kmod-libs.x86_64 0:20-28.0.3.el7 will be installed
  113. ---> Package lz4.x86_64 0:1.7.5-3.el7 will be installed
  114. ---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
  115. ---> Package systemd-libs.x86_64 0:219-73.0.3.el7_8.9 will be installed
  116. --> Running transaction check
  117. ---> Package binutils.x86_64 0:2.27-43.base.0.1.el7_8.1 will be installed
  118. ---> Package dbus-libs.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
  119. ---> Package device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
  120. --> Processing Dependency: device-mapper = 7:1.02.164-7.0.1.el7_8.2 for package: 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64
  121. ---> Package dracut.x86_64 0:033-568.0.3.el7 will be installed
  122. --> Processing Dependency: util-linux >= 2.21 for package: dracut-033-568.0.3.el7.x86_64
  123. --> Processing Dependency: /usr/bin/pkg-config for package: dracut-033-568.0.3.el7.x86_64
  124. --> Processing Dependency: kpartx for package: dracut-033-568.0.3.el7.x86_64
  125. --> Processing Dependency: tar for package: dracut-033-568.0.3.el7.x86_64
  126. --> Processing Dependency: procps-ng for package: dracut-033-568.0.3.el7.x86_64
  127. --> Processing Dependency: hardlink for package: dracut-033-568.0.3.el7.x86_64
  128. ---> Package elfutils-default-yama-scope.noarch 0:0.176-4.el7 will be installed
  129. ---> Package json-c.x86_64 0:0.11-4.el7_0 will be installed
  130. ---> Package xz.x86_64 0:5.2.2-1.el7 will be installed
  131. --> Running transaction check
  132. ---> Package device-mapper.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
  133. ---> Package hardlink.x86_64 1:1.0-19.el7 will be installed
  134. ---> Package kpartx.x86_64 0:0.4.9-131.0.1.el7 will be installed
  135. ---> Package pkgconfig.x86_64 1:0.27.1-4.el7 will be installed
  136. ---> Package procps-ng.x86_64 0:3.3.10-27.el7 will be installed
  137. ---> Package tar.x86_64 2:1.26-35.el7 will be installed
  138. ---> Package util-linux.x86_64 0:2.23.2-63.0.1.el7 will be installed
  139. --> Processing Dependency: libsmartcols = 2.23.2-63.0.1.el7 for package: util-linux-2.23.2-63.0.1.el7.x86_64
  140. --> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  141. --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.25)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  142. --> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  143. --> Processing Dependency: libsmartcols.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  144. --> Processing Dependency: libuser.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  145. --> Running transaction check
  146. ---> Package libsmartcols.x86_64 0:2.23.2-63.0.1.el7 will be installed
  147. ---> Package libuser.x86_64 0:0.60-9.el7 will be installed
  148. ---> Package libutempter.x86_64 0:1.1.6-4.el7 will be installed
  149. --> Finished Dependency Resolution
  150.  
  151. Dependencies Resolved
  152.  
  153. ====================================================================================================================================
  154. Package Arch Version Repository Size
  155. ====================================================================================================================================
  156. Installing:
  157. iputils x86_64 20160308-10.el7 ol7_latest 147 k
  158. Installing for dependencies:
  159. acl x86_64 2.2.51-15.el7 ol7_latest 81 k
  160. binutils x86_64 2.27-43.base.0.1.el7_8.1 ol7_latest 5.9 M
  161. cryptsetup-libs x86_64 2.0.3-6.el7 ol7_latest 338 k
  162. dbus x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 245 k
  163. dbus-libs x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 169 k
  164. device-mapper x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 295 k
  165. device-mapper-libs x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 324 k
  166. dracut x86_64 033-568.0.3.el7 ol7_latest 330 k
  167. elfutils-default-yama-scope noarch 0.176-4.el7 ol7_latest 32 k
  168. elfutils-libs x86_64 0.176-4.el7 ol7_latest 290 k
  169. hardlink x86_64 1:1.0-19.el7 ol7_latest 14 k
  170. json-c x86_64 0.11-4.el7_0 ol7_latest 30 k
  171. kmod x86_64 20-28.0.3.el7 ol7_latest 125 k
  172. kmod-libs x86_64 20-28.0.3.el7 ol7_latest 53 k
  173. kpartx x86_64 0.4.9-131.0.1.el7 ol7_latest 80 k
  174. libsmartcols x86_64 2.23.2-63.0.1.el7 ol7_latest 141 k
  175. libuser x86_64 0.60-9.el7 ol7_latest 400 k
  176. libutempter x86_64 1.1.6-4.el7 ol7_latest 24 k
  177. lz4 x86_64 1.7.5-3.el7 ol7_latest 98 k
  178. pkgconfig x86_64 1:0.27.1-4.el7 ol7_latest 53 k
  179. procps-ng x86_64 3.3.10-27.el7 ol7_latest 290 k
  180. qrencode-libs x86_64 3.4.1-3.el7 ol7_latest 49 k
  181. systemd x86_64 219-73.0.3.el7_8.9 ol7_latest 5.1 M
  182. systemd-libs x86_64 219-73.0.3.el7_8.9 ol7_latest 417 k
  183. tar x86_64 2:1.26-35.el7 ol7_latest 845 k
  184. util-linux x86_64 2.23.2-63.0.1.el7 ol7_latest 2.0 M
  185. xz x86_64 5.2.2-1.el7 ol7_latest 228 k
  186.  
  187. Transaction Summary
  188. ====================================================================================================================================
  189. Install 1 Package (+27 Dependent packages)
  190.  
  191. Total download size: 18 M
  192. Installed size: 69 M
  193. Downloading packages:
  194. (1/28): acl-2.2.51-15.el7.x86_64.rpm | 81 kB 00:00:01
  195. (2/28): cryptsetup-libs-2.0.3-6.el7.x86_64.rpm | 338 kB 00:00:02
  196. (3/28): dbus-1.10.24-14.0.1.el7_8.x86_64.rpm | 245 kB 00:00:01
  197. (4/28): dbus-libs-1.10.24-14.0.1.el7_8.x86_64.rpm | 169 kB 00:00:00
  198. (5/28): device-mapper-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 295 kB 00:00:01
  199. (6/28): device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 324 kB 00:00:02
  200. (7/28): dracut-033-568.0.3.el7.x86_64.rpm | 330 kB 00:00:01
  201. (8/28): elfutils-default-yama-scope-0.176-4.el7.noarch.rpm | 32 kB 00:00:00
  202. (9/28): binutils-2.27-43.base.0.1.el7_8.1.x86_64.rpm | 5.9 MB 00:00:12
  203. (10/28): hardlink-1.0-19.el7.x86_64.rpm | 14 kB 00:00:00
  204. (11/28): iputils-20160308-10.el7.x86_64.rpm | 147 kB 00:00:00
  205. (12/28): json-c-0.11-4.el7_0.x86_64.rpm | 30 kB 00:00:00
  206. (13/28): kmod-20-28.0.3.el7.x86_64.rpm | 125 kB 00:00:00
  207. (14/28): elfutils-libs-0.176-4.el7.x86_64.rpm | 290 kB 00:00:01
  208. (15/28): kmod-libs-20-28.0.3.el7.x86_64.rpm | 53 kB 00:00:00
  209. (16/28): libsmartcols-2.23.2-63.0.1.el7.x86_64.rpm | 141 kB 00:00:00
  210. (17/28): kpartx-0.4.9-131.0.1.el7.x86_64.rpm | 80 kB 00:00:00
  211. (18/28): libutempter-1.1.6-4.el7.x86_64.rpm | 24 kB 00:00:00
  212. (19/28): libuser-0.60-9.el7.x86_64.rpm | 400 kB 00:00:00
  213. (20/28): lz4-1.7.5-3.el7.x86_64.rpm | 98 kB 00:00:00
  214. (21/28): pkgconfig-0.27.1-4.el7.x86_64.rpm | 53 kB 00:00:00
  215. (22/28): qrencode-libs-3.4.1-3.el7.x86_64.rpm | 49 kB 00:00:00
  216. (23/28): procps-ng-3.3.10-27.el7.x86_64.rpm | 290 kB 00:00:01
  217. (24/28): systemd-libs-219-73.0.3.el7_8.9.x86_64.rpm | 417 kB 00:00:01
  218. (25/28): tar-1.26-35.el7.x86_64.rpm | 845 kB 00:00:04
  219. (26/28): systemd-219-73.0.3.el7_8.9.x86_64.rpm | 5.1 MB 00:00:12
  220. (27/28): xz-5.2.2-1.el7.x86_64.rpm | 228 kB 00:00:00
  221. (28/28): util-linux-2.23.2-63.0.1.el7.x86_64.rpm | 2.0 MB 00:00:07
  222. ------------------------------------------------------------------------------------------------------------------------------------
  223. Total 623 kB/s | 18 MB 00:00:29
  224. Running transaction check
  225. Running transaction test
  226. Transaction test succeeded
  227. Running transaction
  228. Installing : xz-5.2.2-1.el7.x86_64 1/28
  229. Installing : lz4-1.7.5-3.el7.x86_64 2/28
  230. Installing : libutempter-1.1.6-4.el7.x86_64 3/28
  231. Installing : 1:hardlink-1.0-19.el7.x86_64 4/28
  232. Installing : libuser-0.60-9.el7.x86_64 5/28
  233. Installing : kmod-libs-20-28.0.3.el7.x86_64 6/28
  234. Installing : json-c-0.11-4.el7_0.x86_64 7/28
  235. Installing : qrencode-libs-3.4.1-3.el7.x86_64 8/28
  236. Installing : binutils-2.27-43.base.0.1.el7_8.1.x86_64 9/28
  237. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  238. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  239. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  240. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  241. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  242. Installing : libsmartcols-2.23.2-63.0.1.el7.x86_64 10/28
  243. Installing : 2:tar-1.26-35.el7.x86_64 11/28
  244. Installing : 1:pkgconfig-0.27.1-4.el7.x86_64 12/28
  245. Installing : acl-2.2.51-15.el7.x86_64 13/28
  246. Installing : util-linux-2.23.2-63.0.1.el7.x86_64 14/28
  247. Installing : procps-ng-3.3.10-27.el7.x86_64 15/28
  248. Installing : kpartx-0.4.9-131.0.1.el7.x86_64 16/28
  249. Installing : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 17/28
  250. Installing : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 18/28
  251. Installing : cryptsetup-libs-2.0.3-6.el7.x86_64 19/28
  252. Installing : dracut-033-568.0.3.el7.x86_64 20/28
  253. Installing : kmod-20-28.0.3.el7.x86_64 21/28
  254. Installing : elfutils-libs-0.176-4.el7.x86_64 22/28
  255. Installing : systemd-libs-219-73.0.3.el7_8.9.x86_64 23/28
  256. Installing : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 24/28
  257. Installing : systemd-219-73.0.3.el7_8.9.x86_64 25/28
  258. Failed to get D-Bus connection: Operation not permitted
  259. Installing : elfutils-default-yama-scope-0.176-4.el7.noarch 26/28
  260. Installing : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 27/28
  261. Installing : iputils-20160308-10.el7.x86_64 28/28
  262. Verifying : acl-2.2.51-15.el7.x86_64 1/28
  263. Verifying : 1:pkgconfig-0.27.1-4.el7.x86_64 2/28
  264. Verifying : 2:tar-1.26-35.el7.x86_64 3/28
  265. Verifying : libsmartcols-2.23.2-63.0.1.el7.x86_64 4/28
  266. Verifying : util-linux-2.23.2-63.0.1.el7.x86_64 5/28
  267. Verifying : elfutils-default-yama-scope-0.176-4.el7.noarch 6/28
  268. Verifying : systemd-219-73.0.3.el7_8.9.x86_64 7/28
  269. Verifying : binutils-2.27-43.base.0.1.el7_8.1.x86_64 8/28
  270. Verifying : procps-ng-3.3.10-27.el7.x86_64 9/28
  271. Verifying : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 10/28
  272. Verifying : systemd-libs-219-73.0.3.el7_8.9.x86_64 11/28
  273. Verifying : qrencode-libs-3.4.1-3.el7.x86_64 12/28
  274. Verifying : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 13/28
  275. Verifying : json-c-0.11-4.el7_0.x86_64 14/28
  276. Verifying : dracut-033-568.0.3.el7.x86_64 15/28
  277. Verifying : cryptsetup-libs-2.0.3-6.el7.x86_64 16/28
  278. Verifying : lz4-1.7.5-3.el7.x86_64 17/28
  279. Verifying : iputils-20160308-10.el7.x86_64 18/28
  280. Verifying : xz-5.2.2-1.el7.x86_64 19/28
  281. Verifying : kmod-libs-20-28.0.3.el7.x86_64 20/28
  282. Verifying : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 21/28
  283. Verifying : kpartx-0.4.9-131.0.1.el7.x86_64 22/28
  284. Verifying : elfutils-libs-0.176-4.el7.x86_64 23/28
  285. Verifying : libuser-0.60-9.el7.x86_64 24/28
  286. Verifying : kmod-20-28.0.3.el7.x86_64 25/28
  287. Verifying : 1:hardlink-1.0-19.el7.x86_64 26/28
  288. Verifying : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 27/28
  289. Verifying : libutempter-1.1.6-4.el7.x86_64 28/28
  290.  
  291. Installed:
  292. iputils.x86_64 0:20160308-10.el7
  293.  
  294. Dependency Installed:
  295. acl.x86_64 0:2.2.51-15.el7 binutils.x86_64 0:2.27-43.base.0.1.el7_8.1
  296. cryptsetup-libs.x86_64 0:2.0.3-6.el7 dbus.x86_64 1:1.10.24-14.0.1.el7_8
  297. dbus-libs.x86_64 1:1.10.24-14.0.1.el7_8 device-mapper.x86_64 7:1.02.164-7.0.1.el7_8.2
  298. device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 dracut.x86_64 0:033-568.0.3.el7
  299. elfutils-default-yama-scope.noarch 0:0.176-4.el7 elfutils-libs.x86_64 0:0.176-4.el7
  300. hardlink.x86_64 1:1.0-19.el7 json-c.x86_64 0:0.11-4.el7_0
  301. kmod.x86_64 0:20-28.0.3.el7 kmod-libs.x86_64 0:20-28.0.3.el7
  302. kpartx.x86_64 0:0.4.9-131.0.1.el7 libsmartcols.x86_64 0:2.23.2-63.0.1.el7
  303. libuser.x86_64 0:0.60-9.el7 libutempter.x86_64 0:1.1.6-4.el7
  304. lz4.x86_64 0:1.7.5-3.el7 pkgconfig.x86_64 1:0.27.1-4.el7
  305. procps-ng.x86_64 0:3.3.10-27.el7 qrencode-libs.x86_64 0:3.4.1-3.el7
  306. systemd.x86_64 0:219-73.0.3.el7_8.9 systemd-libs.x86_64 0:219-73.0.3.el7_8.9
  307. tar.x86_64 2:1.26-35.el7 util-linux.x86_64 0:2.23.2-63.0.1.el7
  308. xz.x86_64 0:5.2.2-1.el7
  309.  
  310. Complete!
  311. bash-4.2# yum install -y iputils telnet
  312. Loaded plugins: ovl
  313. Package iputils-20160308-10.el7.x86_64 already installed and latest version
  314. Resolving Dependencies
  315. --> Running transaction check
  316. ---> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
  317. --> Finished Dependency Resolution
  318.  
  319. Dependencies Resolved
  320.  
  321. ====================================================================================================================================
  322. Package Arch Version Repository Size
  323. ====================================================================================================================================
  324. Installing:
  325. telnet x86_64 1:0.17-65.el7_8 ol7_latest 64 k
  326.  
  327. Transaction Summary
  328. ====================================================================================================================================
  329. Install 1 Package
  330.  
  331. Total download size: 64 k
  332. Installed size: 113 k
  333. Downloading packages:
  334. telnet-0.17-65.el7_8.x86_64.rpm | 64 kB 00:00:00
  335. Running transaction check
  336. Running transaction test
  337. Transaction test succeeded
  338. Running transaction
  339. Installing : 1:telnet-0.17-65.el7_8.x86_64 1/1
  340. Verifying : 1:telnet-0.17-65.el7_8.x86_64 1/1
  341.  
  342. Installed:
  343. telnet.x86_64 1:0.17-65.el7_8
  344.  
  345. Complete!
  346. bash-4.2#
  347. bash-4.2# ping bob
  348. PING bob (172.21.0.3) 56(84) bytes of data.
  349. 64 bytes from bob.foo (172.21.0.3): icmp_seq=1 ttl=64 time=0.112 ms
  350. 64 bytes from bob.foo (172.21.0.3): icmp_seq=2 ttl=64 time=0.084 ms
  351. 64 bytes from bob.foo (172.21.0.3): icmp_seq=3 ttl=64 time=0.087 ms
  352. ^C
  353. --- bob ping statistics ---
  354. 3 packets transmitted, 3 received, 0% packet loss, time 2033ms
  355. rtt min/avg/max/mdev = 0.084/0.094/0.112/0.014 ms
  356. bash-4.2#
  357. bash-4.2# telnet bob 3308
  358. Trying 172.21.0.3...
  359. telnet: connect to address 172.21.0.3: Connection refused
  360. bash-4.2#
  361. bash-4.2# telnet bob
  362. Trying 172.21.0.3...
  363. telnet: connect to address 172.21.0.3: Connection refused
  364. bash-4.2#
  365. bash-4.2# telnet bob:3308
  366. telnet: bob:3308: Name or service not known
  367. bob:3308: Unknown host
  368. bash-4.2#
  369. bash-4.2# mysql mysql -h bob -P 3308 --protocol=tcp -u root -p
  370. Enter password:
  371. ERROR 2003 (HY000): Can't connect to MySQL server on 'bob' (111)
  372. bash-4.2#
  373. bash-4.2# telnet bob 3306
  374. Trying 172.21.0.3...
  375. Connected to bob.
  376. Escape character is '^]'.
  377. CHost '172.21.0.2' is not allowed to connect to this MySQL serverConnection closed by foreign host.
  378. bash-4.2#
  379. bash-4.2# telnet bob 33060
  380. Trying 172.21.0.3...
  381. Connected to bob.
  382. Escape character is '^]'.
  383.  
  384. �^C
  385. Connection closed by foreign host.
  386. bash-4.2#
  387. bash-4.2#
  388. bash-4.2# mysql mysql -h bob -P 33060 --protocol=tcp -u root -p
  389. Enter password:
  390. ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10
  391. bash-4.2#
  392.  
Add Comment
Please, Sign In to add comment