nsaunders

Untitled

Sep 26th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.63 KB | None | 0 0
  1. root $ docker network ls
  2. NETWORK ID NAME DRIVER SCOPE
  3. e57e2c862b19 bridge bridge local
  4. 94f944a05b0e foo bridge local
  5. 25aba55a5413 host host local
  6. ad5c1c2fa1e1 none null local
  7. root $
  8. root $
  9. root $
  10. root $ docker pull ubuntu
  11. Using default tag: latest
  12. latest: Pulling from library/ubuntu
  13. d72e567cc804: Pull complete
  14. 0f3630e5ff08: Pull complete
  15. b6a83d81d1f4: Pull complete
  16. Digest: sha256:bc2f7250f69267c9c6b66d7b6a81a54d3878bb85f1ebb5f951c896d13e6ba537
  17. Status: Downloaded newer image for ubuntu:latest
  18. docker.io/library/ubuntu:latest
  19. root $
  20. root $ docker exec -it bob bash
  21. bash-4.2#
  22. bash-4.2#
  23. bash-4.2# sudo vi init.d/mysql.server
  24. bash: sudo: command not found
  25. bash-4.2#
  26. bash-4.2# vi init.d/mysql.server
  27. bash: vi: command not found
  28. bash-4.2#
  29. bash-4.2# vim init.d/mysql.server
  30. bash: vim: command not found
  31. bash-4.2#
  32. bash-4.2# apt -y install nano telnet iputils
  33. bash: apt: command not found
  34. bash-4.2#
  35. bash-4.2# yum -y install nano telnet iputils
  36. Loaded plugins: ovl
  37. mysql-connectors-community | 2.5 kB 00:00:00
  38. mysql-tools-community | 2.5 kB 00:00:00
  39. mysql80-community | 2.5 kB 00:00:00
  40. mysql80-server-minimal | 2.5 kB 00:00:00
  41. ol7_latest | 2.7 kB 00:00:00
  42. (1/4): mysql-connectors-community/x86_64/primary_db | 62 kB 00:00:00
  43. (2/4): mysql80-community/x86_64/primary_db | 115 kB 00:00:00
  44. (3/4): mysql-tools-community/x86_64/primary_db | 76 kB 00:00:00
  45. (4/4): mysql80-server-minimal/x86_64/primary_db | 19 kB 00:00:00
  46. (1/3): ol7_latest/x86_64/group | 660 kB 00:00:03
  47. (2/3): ol7_latest/x86_64/updateinfo | 2.9 MB 00:00:07
  48. (3/3): ol7_latest/x86_64/primary_db | 36 MB 00:01:01
  49. Resolving Dependencies
  50. --> Running transaction check
  51. ---> Package iputils.x86_64 0:20160308-10.el7 will be installed
  52. --> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
  53. ---> Package nano.x86_64 0:2.3.1-10.el7 will be installed
  54. ---> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
  55. --> Running transaction check
  56. ---> Package systemd.x86_64 0:219-73.0.3.el7_8.9 will be installed
  57. --> Processing Dependency: systemd-libs = 219-73.0.3.el7_8.9 for package: systemd-219-73.0.3.el7_8.9.x86_64
  58. --> Processing Dependency: kmod >= 18-4 for package: systemd-219-73.0.3.el7_8.9.x86_64
  59. --> Processing Dependency: dbus for package: systemd-219-73.0.3.el7_8.9.x86_64
  60. --> Processing Dependency: acl for package: systemd-219-73.0.3.el7_8.9.x86_64
  61. --> Processing Dependency: libcryptsetup.so.12(CRYPTSETUP_2.0)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  62. --> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  63. --> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  64. --> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  65. --> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  66. --> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  67. --> Processing Dependency: libdw.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  68. --> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  69. --> Processing Dependency: libcryptsetup.so.12()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  70. --> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
  71. --> Running transaction check
  72. ---> Package acl.x86_64 0:2.2.51-15.el7 will be installed
  73. ---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be installed
  74. --> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  75. --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  76. --> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  77. --> Processing Dependency: libjson-c.so.2()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
  78. ---> Package dbus.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
  79. --> 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
  80. --> 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
  81. --> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  82. --> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
  83. ---> Package elfutils-libs.x86_64 0:0.176-4.el7 will be installed
  84. --> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-4.el7.x86_64
  85. ---> Package kmod.x86_64 0:20-28.0.3.el7 will be installed
  86. --> Processing Dependency: /usr/bin/xz for package: kmod-20-28.0.3.el7.x86_64
  87. --> Processing Dependency: /usr/bin/nm for package: kmod-20-28.0.3.el7.x86_64
  88. --> Processing Dependency: dracut for package: kmod-20-28.0.3.el7.x86_64
  89. ---> Package kmod-libs.x86_64 0:20-28.0.3.el7 will be installed
  90. ---> Package lz4.x86_64 0:1.7.5-3.el7 will be installed
  91. ---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
  92. ---> Package systemd-libs.x86_64 0:219-73.0.3.el7_8.9 will be installed
  93. --> Running transaction check
  94. ---> Package binutils.x86_64 0:2.27-43.base.0.1.el7_8.1 will be installed
  95. ---> Package dbus-libs.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
  96. ---> Package device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
  97. --> 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
  98. ---> Package dracut.x86_64 0:033-568.0.3.el7 will be installed
  99. --> Processing Dependency: util-linux >= 2.21 for package: dracut-033-568.0.3.el7.x86_64
  100. --> Processing Dependency: /usr/bin/pkg-config for package: dracut-033-568.0.3.el7.x86_64
  101. --> Processing Dependency: kpartx for package: dracut-033-568.0.3.el7.x86_64
  102. --> Processing Dependency: tar for package: dracut-033-568.0.3.el7.x86_64
  103. --> Processing Dependency: procps-ng for package: dracut-033-568.0.3.el7.x86_64
  104. --> Processing Dependency: hardlink for package: dracut-033-568.0.3.el7.x86_64
  105. ---> Package elfutils-default-yama-scope.noarch 0:0.176-4.el7 will be installed
  106. ---> Package json-c.x86_64 0:0.11-4.el7_0 will be installed
  107. ---> Package xz.x86_64 0:5.2.2-1.el7 will be installed
  108. --> Running transaction check
  109. ---> Package device-mapper.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
  110. ---> Package hardlink.x86_64 1:1.0-19.el7 will be installed
  111. ---> Package kpartx.x86_64 0:0.4.9-131.0.1.el7 will be installed
  112. ---> Package pkgconfig.x86_64 1:0.27.1-4.el7 will be installed
  113. ---> Package procps-ng.x86_64 0:3.3.10-27.el7 will be installed
  114. ---> Package tar.x86_64 2:1.26-35.el7 will be installed
  115. ---> Package util-linux.x86_64 0:2.23.2-63.0.1.el7 will be installed
  116. --> Processing Dependency: libsmartcols = 2.23.2-63.0.1.el7 for package: util-linux-2.23.2-63.0.1.el7.x86_64
  117. --> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  118. --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.25)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  119. --> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  120. --> Processing Dependency: libsmartcols.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  121. --> Processing Dependency: libuser.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
  122. --> Running transaction check
  123. ---> Package libsmartcols.x86_64 0:2.23.2-63.0.1.el7 will be installed
  124. ---> Package libuser.x86_64 0:0.60-9.el7 will be installed
  125. ---> Package libutempter.x86_64 0:1.1.6-4.el7 will be installed
  126. --> Finished Dependency Resolution
  127.  
  128. Dependencies Resolved
  129.  
  130. ====================================================================================================================================
  131. Package Arch Version Repository Size
  132. ====================================================================================================================================
  133. Installing:
  134. iputils x86_64 20160308-10.el7 ol7_latest 147 k
  135. nano x86_64 2.3.1-10.el7 ol7_latest 438 k
  136. telnet x86_64 1:0.17-65.el7_8 ol7_latest 64 k
  137. Installing for dependencies:
  138. acl x86_64 2.2.51-15.el7 ol7_latest 81 k
  139. binutils x86_64 2.27-43.base.0.1.el7_8.1 ol7_latest 5.9 M
  140. cryptsetup-libs x86_64 2.0.3-6.el7 ol7_latest 338 k
  141. dbus x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 245 k
  142. dbus-libs x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 169 k
  143. device-mapper x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 295 k
  144. device-mapper-libs x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 324 k
  145. dracut x86_64 033-568.0.3.el7 ol7_latest 330 k
  146. elfutils-default-yama-scope noarch 0.176-4.el7 ol7_latest 32 k
  147. elfutils-libs x86_64 0.176-4.el7 ol7_latest 290 k
  148. hardlink x86_64 1:1.0-19.el7 ol7_latest 14 k
  149. json-c x86_64 0.11-4.el7_0 ol7_latest 30 k
  150. kmod x86_64 20-28.0.3.el7 ol7_latest 125 k
  151. kmod-libs x86_64 20-28.0.3.el7 ol7_latest 53 k
  152. kpartx x86_64 0.4.9-131.0.1.el7 ol7_latest 80 k
  153. libsmartcols x86_64 2.23.2-63.0.1.el7 ol7_latest 141 k
  154. libuser x86_64 0.60-9.el7 ol7_latest 400 k
  155. libutempter x86_64 1.1.6-4.el7 ol7_latest 24 k
  156. lz4 x86_64 1.7.5-3.el7 ol7_latest 98 k
  157. pkgconfig x86_64 1:0.27.1-4.el7 ol7_latest 53 k
  158. procps-ng x86_64 3.3.10-27.el7 ol7_latest 290 k
  159. qrencode-libs x86_64 3.4.1-3.el7 ol7_latest 49 k
  160. systemd x86_64 219-73.0.3.el7_8.9 ol7_latest 5.1 M
  161. systemd-libs x86_64 219-73.0.3.el7_8.9 ol7_latest 417 k
  162. tar x86_64 2:1.26-35.el7 ol7_latest 845 k
  163. util-linux x86_64 2.23.2-63.0.1.el7 ol7_latest 2.0 M
  164. xz x86_64 5.2.2-1.el7 ol7_latest 228 k
  165.  
  166. Transaction Summary
  167. ====================================================================================================================================
  168. Install 3 Packages (+27 Dependent packages)
  169.  
  170. Total download size: 18 M
  171. Installed size: 71 M
  172. Downloading packages:
  173. (1/30): acl-2.2.51-15.el7.x86_64.rpm | 81 kB 00:00:00
  174. (2/30): cryptsetup-libs-2.0.3-6.el7.x86_64.rpm | 338 kB 00:00:01
  175. (3/30): dbus-1.10.24-14.0.1.el7_8.x86_64.rpm | 245 kB 00:00:00
  176. (4/30): dbus-libs-1.10.24-14.0.1.el7_8.x86_64.rpm | 169 kB 00:00:00
  177. (5/30): device-mapper-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 295 kB 00:00:01
  178. (6/30): device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 324 kB 00:00:01
  179. (7/30): dracut-033-568.0.3.el7.x86_64.rpm | 330 kB 00:00:01
  180. (8/30): elfutils-default-yama-scope-0.176-4.el7.noarch.rpm | 32 kB 00:00:00
  181. (9/30): elfutils-libs-0.176-4.el7.x86_64.rpm | 290 kB 00:00:01
  182. (10/30): hardlink-1.0-19.el7.x86_64.rpm | 14 kB 00:00:00
  183. (11/30): iputils-20160308-10.el7.x86_64.rpm | 147 kB 00:00:00
  184. (12/30): json-c-0.11-4.el7_0.x86_64.rpm | 30 kB 00:00:00
  185. (13/30): kmod-20-28.0.3.el7.x86_64.rpm | 125 kB 00:00:00
  186. (14/30): kmod-libs-20-28.0.3.el7.x86_64.rpm | 53 kB 00:00:00
  187. (15/30): kpartx-0.4.9-131.0.1.el7.x86_64.rpm | 80 kB 00:00:01
  188. (16/30): libsmartcols-2.23.2-63.0.1.el7.x86_64.rpm | 141 kB 00:00:00
  189. (17/30): binutils-2.27-43.base.0.1.el7_8.1.x86_64.rpm | 5.9 MB 00:00:14
  190. (18/30): libutempter-1.1.6-4.el7.x86_64.rpm | 24 kB 00:00:00
  191. (19/30): lz4-1.7.5-3.el7.x86_64.rpm | 98 kB 00:00:00
  192. (20/30): nano-2.3.1-10.el7.x86_64.rpm | 438 kB 00:00:01
  193. (21/30): libuser-0.60-9.el7.x86_64.rpm | 400 kB 00:00:02
  194. (22/30): pkgconfig-0.27.1-4.el7.x86_64.rpm | 53 kB 00:00:00
  195. (23/30): qrencode-libs-3.4.1-3.el7.x86_64.rpm | 49 kB 00:00:00
  196. (24/30): procps-ng-3.3.10-27.el7.x86_64.rpm | 290 kB 00:00:01
  197. (25/30): systemd-libs-219-73.0.3.el7_8.9.x86_64.rpm | 417 kB 00:00:01
  198. (26/30): tar-1.26-35.el7.x86_64.rpm | 845 kB 00:00:03
  199. (27/30): telnet-0.17-65.el7_8.x86_64.rpm | 64 kB 00:00:00
  200. (28/30): util-linux-2.23.2-63.0.1.el7.x86_64.rpm | 2.0 MB 00:00:10
  201. (29/30): xz-5.2.2-1.el7.x86_64.rpm | 228 kB 00:00:01
  202. (30/30): systemd-219-73.0.3.el7_8.9.x86_64.rpm | 5.1 MB 00:00:18
  203. ------------------------------------------------------------------------------------------------------------------------------------
  204. Total 535 kB/s | 18 MB 00:00:35
  205. Running transaction check
  206. Running transaction test
  207. Transaction test succeeded
  208. Running transaction
  209. Installing : xz-5.2.2-1.el7.x86_64 1/30
  210. Installing : lz4-1.7.5-3.el7.x86_64 2/30
  211. Installing : libutempter-1.1.6-4.el7.x86_64 3/30
  212. Installing : 1:hardlink-1.0-19.el7.x86_64 4/30
  213. Installing : libuser-0.60-9.el7.x86_64 5/30
  214. Installing : kmod-libs-20-28.0.3.el7.x86_64 6/30
  215. Installing : json-c-0.11-4.el7_0.x86_64 7/30
  216. Installing : qrencode-libs-3.4.1-3.el7.x86_64 8/30
  217. Installing : binutils-2.27-43.base.0.1.el7_8.1.x86_64 9/30
  218. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  219. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  220. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  221. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  222. install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
  223. Installing : libsmartcols-2.23.2-63.0.1.el7.x86_64 10/30
  224. Installing : 2:tar-1.26-35.el7.x86_64 11/30
  225. Installing : 1:pkgconfig-0.27.1-4.el7.x86_64 12/30
  226. Installing : acl-2.2.51-15.el7.x86_64 13/30
  227. Installing : util-linux-2.23.2-63.0.1.el7.x86_64 14/30
  228. Installing : procps-ng-3.3.10-27.el7.x86_64 15/30
  229. Installing : kpartx-0.4.9-131.0.1.el7.x86_64 16/30
  230. Installing : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 17/30
  231. Installing : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 18/30
  232. Installing : cryptsetup-libs-2.0.3-6.el7.x86_64 19/30
  233. Installing : dracut-033-568.0.3.el7.x86_64 20/30
  234. Installing : kmod-20-28.0.3.el7.x86_64 21/30
  235. Installing : elfutils-libs-0.176-4.el7.x86_64 22/30
  236. Installing : systemd-libs-219-73.0.3.el7_8.9.x86_64 23/30
  237. Installing : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 24/30
  238. Installing : systemd-219-73.0.3.el7_8.9.x86_64 25/30
  239. Failed to get D-Bus connection: Operation not permitted
  240. Installing : elfutils-default-yama-scope-0.176-4.el7.noarch 26/30
  241. Installing : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 27/30
  242. Installing : iputils-20160308-10.el7.x86_64 28/30
  243. Installing : nano-2.3.1-10.el7.x86_64 29/30
  244. Installing : 1:telnet-0.17-65.el7_8.x86_64 30/30
  245. Verifying : acl-2.2.51-15.el7.x86_64 1/30
  246. Verifying : 1:pkgconfig-0.27.1-4.el7.x86_64 2/30
  247. Verifying : 2:tar-1.26-35.el7.x86_64 3/30
  248. Verifying : libsmartcols-2.23.2-63.0.1.el7.x86_64 4/30
  249. Verifying : util-linux-2.23.2-63.0.1.el7.x86_64 5/30
  250. Verifying : elfutils-default-yama-scope-0.176-4.el7.noarch 6/30
  251. Verifying : systemd-219-73.0.3.el7_8.9.x86_64 7/30
  252. Verifying : binutils-2.27-43.base.0.1.el7_8.1.x86_64 8/30
  253. Verifying : procps-ng-3.3.10-27.el7.x86_64 9/30
  254. Verifying : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 10/30
  255. Verifying : systemd-libs-219-73.0.3.el7_8.9.x86_64 11/30
  256. Verifying : qrencode-libs-3.4.1-3.el7.x86_64 12/30
  257. Verifying : 1:telnet-0.17-65.el7_8.x86_64 13/30
  258. Verifying : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 14/30
  259. Verifying : json-c-0.11-4.el7_0.x86_64 15/30
  260. Verifying : dracut-033-568.0.3.el7.x86_64 16/30
  261. Verifying : cryptsetup-libs-2.0.3-6.el7.x86_64 17/30
  262. Verifying : lz4-1.7.5-3.el7.x86_64 18/30
  263. Verifying : iputils-20160308-10.el7.x86_64 19/30
  264. Verifying : xz-5.2.2-1.el7.x86_64 20/30
  265. Verifying : kmod-libs-20-28.0.3.el7.x86_64 21/30
  266. Verifying : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 22/30
  267. Verifying : kpartx-0.4.9-131.0.1.el7.x86_64 23/30
  268. Verifying : elfutils-libs-0.176-4.el7.x86_64 24/30
  269. Verifying : libuser-0.60-9.el7.x86_64 25/30
  270. Verifying : kmod-20-28.0.3.el7.x86_64 26/30
  271. Verifying : 1:hardlink-1.0-19.el7.x86_64 27/30
  272. Verifying : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 28/30
  273. Verifying : nano-2.3.1-10.el7.x86_64 29/30
  274. Verifying : libutempter-1.1.6-4.el7.x86_64 30/30
  275.  
  276. Installed:
  277. iputils.x86_64 0:20160308-10.el7 nano.x86_64 0:2.3.1-10.el7 telnet.x86_64 1:0.17-65.el7_8
  278.  
  279. Dependency Installed:
  280. acl.x86_64 0:2.2.51-15.el7 binutils.x86_64 0:2.27-43.base.0.1.el7_8.1
  281. cryptsetup-libs.x86_64 0:2.0.3-6.el7 dbus.x86_64 1:1.10.24-14.0.1.el7_8
  282. 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
  283. device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 dracut.x86_64 0:033-568.0.3.el7
  284. elfutils-default-yama-scope.noarch 0:0.176-4.el7 elfutils-libs.x86_64 0:0.176-4.el7
  285. hardlink.x86_64 1:1.0-19.el7 json-c.x86_64 0:0.11-4.el7_0
  286. kmod.x86_64 0:20-28.0.3.el7 kmod-libs.x86_64 0:20-28.0.3.el7
  287. kpartx.x86_64 0:0.4.9-131.0.1.el7 libsmartcols.x86_64 0:2.23.2-63.0.1.el7
  288. libuser.x86_64 0:0.60-9.el7 libutempter.x86_64 0:1.1.6-4.el7
  289. lz4.x86_64 0:1.7.5-3.el7 pkgconfig.x86_64 1:0.27.1-4.el7
  290. procps-ng.x86_64 0:3.3.10-27.el7 qrencode-libs.x86_64 0:3.4.1-3.el7
  291. systemd.x86_64 0:219-73.0.3.el7_8.9 systemd-libs.x86_64 0:219-73.0.3.el7_8.9
  292. tar.x86_64 2:1.26-35.el7 util-linux.x86_64 0:2.23.2-63.0.1.el7
  293. xz.x86_64 0:5.2.2-1.el7
  294.  
  295. Complete!
  296. bash-4.2#
  297. bash-4.2# ping alice
  298. PING alice (172.21.0.2) 56(84) bytes of data.
  299. 64 bytes from alice.foo (172.21.0.2): icmp_seq=1 ttl=64 time=0.093 ms
  300. 64 bytes from alice.foo (172.21.0.2): icmp_seq=2 ttl=64 time=0.078 ms
  301. ^C
  302. --- alice ping statistics ---
  303. 2 packets transmitted, 2 received, 0% packet loss, time 1006ms
  304. rtt min/avg/max/mdev = 0.078/0.085/0.093/0.011 ms
  305. bash-4.2#
  306. bash-4.2#
  307. bash-4.2# telnet alice
  308. Trying 172.21.0.2...
  309. telnet: connect to address 172.21.0.2: Connection refused
  310. bash-4.2#
  311. bash-4.2# telnet alice:3306
  312. telnet: alice:3306: Name or service not known
  313. alice:3306: Unknown host
  314. bash-4.2#
  315. bash-4.2# telnet alice:33060
  316. telnet: alice:33060: Name or service not known
  317. alice:33060: Unknown host
  318. bash-4.2#
  319. bash-4.2# telnet alice:3307
  320. telnet: alice:3307: Name or service not known
  321. alice:3307: Unknown host
  322. bash-4.2#
  323. bash-4.2# telnet alice 3307
  324. Trying 172.21.0.2...
  325. telnet: connect to address 172.21.0.2: Connection refused
  326. bash-4.2#
  327. bash-4.2# telnet alice 33060
  328. Trying 172.21.0.2...
  329. Connected to alice.
  330. Escape character is '^]'.
  331.  
  332. �^CConnection closed by foreign host.
  333. bash-4.2#
  334. bash-4.2# mysql mysql -h alice -P 33060 --protocol=tcp -u root -p
  335. Enter password:
  336. ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10
  337. bash-4.2#
  338. bash-4.2# mysql mysql -h alice -P 3307 --protocol=tcp -u root -p
  339. Enter password:
  340. ERROR 2003 (HY000): Can't connect to MySQL server on 'alice' (111)
  341. bash-4.2#
  342.  
  343.  
  344.  
Add Comment
Please, Sign In to add comment