Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root $ docker network ls
- NETWORK ID NAME DRIVER SCOPE
- e57e2c862b19 bridge bridge local
- 94f944a05b0e foo bridge local
- 25aba55a5413 host host local
- ad5c1c2fa1e1 none null local
- root $
- root $
- root $
- root $ docker pull ubuntu
- Using default tag: latest
- latest: Pulling from library/ubuntu
- d72e567cc804: Pull complete
- 0f3630e5ff08: Pull complete
- b6a83d81d1f4: Pull complete
- Digest: sha256:bc2f7250f69267c9c6b66d7b6a81a54d3878bb85f1ebb5f951c896d13e6ba537
- Status: Downloaded newer image for ubuntu:latest
- docker.io/library/ubuntu:latest
- root $
- root $ docker exec -it bob bash
- bash-4.2#
- bash-4.2#
- bash-4.2# sudo vi init.d/mysql.server
- bash: sudo: command not found
- bash-4.2#
- bash-4.2# vi init.d/mysql.server
- bash: vi: command not found
- bash-4.2#
- bash-4.2# vim init.d/mysql.server
- bash: vim: command not found
- bash-4.2#
- bash-4.2# apt -y install nano telnet iputils
- bash: apt: command not found
- bash-4.2#
- bash-4.2# yum -y install nano telnet iputils
- Loaded plugins: ovl
- mysql-connectors-community | 2.5 kB 00:00:00
- mysql-tools-community | 2.5 kB 00:00:00
- mysql80-community | 2.5 kB 00:00:00
- mysql80-server-minimal | 2.5 kB 00:00:00
- ol7_latest | 2.7 kB 00:00:00
- (1/4): mysql-connectors-community/x86_64/primary_db | 62 kB 00:00:00
- (2/4): mysql80-community/x86_64/primary_db | 115 kB 00:00:00
- (3/4): mysql-tools-community/x86_64/primary_db | 76 kB 00:00:00
- (4/4): mysql80-server-minimal/x86_64/primary_db | 19 kB 00:00:00
- (1/3): ol7_latest/x86_64/group | 660 kB 00:00:03
- (2/3): ol7_latest/x86_64/updateinfo | 2.9 MB 00:00:07
- (3/3): ol7_latest/x86_64/primary_db | 36 MB 00:01:01
- Resolving Dependencies
- --> Running transaction check
- ---> Package iputils.x86_64 0:20160308-10.el7 will be installed
- --> Processing Dependency: systemd for package: iputils-20160308-10.el7.x86_64
- ---> Package nano.x86_64 0:2.3.1-10.el7 will be installed
- ---> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
- --> Running transaction check
- ---> Package systemd.x86_64 0:219-73.0.3.el7_8.9 will be installed
- --> Processing Dependency: systemd-libs = 219-73.0.3.el7_8.9 for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: kmod >= 18-4 for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: dbus for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: acl for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libcryptsetup.so.12(CRYPTSETUP_2.0)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libdw.so.1()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libcryptsetup.so.12()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-73.0.3.el7_8.9.x86_64
- --> Running transaction check
- ---> Package acl.x86_64 0:2.2.51-15.el7 will be installed
- ---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be installed
- --> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
- --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
- --> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
- --> Processing Dependency: libjson-c.so.2()(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
- ---> Package dbus.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
- --> 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
- --> 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
- --> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
- --> Processing Dependency: libdbus-1.so.3()(64bit) for package: 1:dbus-1.10.24-14.0.1.el7_8.x86_64
- ---> Package elfutils-libs.x86_64 0:0.176-4.el7 will be installed
- --> Processing Dependency: default-yama-scope for package: elfutils-libs-0.176-4.el7.x86_64
- ---> Package kmod.x86_64 0:20-28.0.3.el7 will be installed
- --> Processing Dependency: /usr/bin/xz for package: kmod-20-28.0.3.el7.x86_64
- --> Processing Dependency: /usr/bin/nm for package: kmod-20-28.0.3.el7.x86_64
- --> Processing Dependency: dracut for package: kmod-20-28.0.3.el7.x86_64
- ---> Package kmod-libs.x86_64 0:20-28.0.3.el7 will be installed
- ---> Package lz4.x86_64 0:1.7.5-3.el7 will be installed
- ---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
- ---> Package systemd-libs.x86_64 0:219-73.0.3.el7_8.9 will be installed
- --> Running transaction check
- ---> Package binutils.x86_64 0:2.27-43.base.0.1.el7_8.1 will be installed
- ---> Package dbus-libs.x86_64 1:1.10.24-14.0.1.el7_8 will be installed
- ---> Package device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
- --> 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
- ---> Package dracut.x86_64 0:033-568.0.3.el7 will be installed
- --> Processing Dependency: util-linux >= 2.21 for package: dracut-033-568.0.3.el7.x86_64
- --> Processing Dependency: /usr/bin/pkg-config for package: dracut-033-568.0.3.el7.x86_64
- --> Processing Dependency: kpartx for package: dracut-033-568.0.3.el7.x86_64
- --> Processing Dependency: tar for package: dracut-033-568.0.3.el7.x86_64
- --> Processing Dependency: procps-ng for package: dracut-033-568.0.3.el7.x86_64
- --> Processing Dependency: hardlink for package: dracut-033-568.0.3.el7.x86_64
- ---> Package elfutils-default-yama-scope.noarch 0:0.176-4.el7 will be installed
- ---> Package json-c.x86_64 0:0.11-4.el7_0 will be installed
- ---> Package xz.x86_64 0:5.2.2-1.el7 will be installed
- --> Running transaction check
- ---> Package device-mapper.x86_64 7:1.02.164-7.0.1.el7_8.2 will be installed
- ---> Package hardlink.x86_64 1:1.0-19.el7 will be installed
- ---> Package kpartx.x86_64 0:0.4.9-131.0.1.el7 will be installed
- ---> Package pkgconfig.x86_64 1:0.27.1-4.el7 will be installed
- ---> Package procps-ng.x86_64 0:3.3.10-27.el7 will be installed
- ---> Package tar.x86_64 2:1.26-35.el7 will be installed
- ---> Package util-linux.x86_64 0:2.23.2-63.0.1.el7 will be installed
- --> Processing Dependency: libsmartcols = 2.23.2-63.0.1.el7 for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Processing Dependency: libutempter.so.0(UTEMPTER_1.1)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Processing Dependency: libsmartcols.so.1(SMARTCOLS_2.25)(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Processing Dependency: libutempter.so.0()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Processing Dependency: libsmartcols.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Processing Dependency: libuser.so.1()(64bit) for package: util-linux-2.23.2-63.0.1.el7.x86_64
- --> Running transaction check
- ---> Package libsmartcols.x86_64 0:2.23.2-63.0.1.el7 will be installed
- ---> Package libuser.x86_64 0:0.60-9.el7 will be installed
- ---> Package libutempter.x86_64 0:1.1.6-4.el7 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ====================================================================================================================================
- Package Arch Version Repository Size
- ====================================================================================================================================
- Installing:
- iputils x86_64 20160308-10.el7 ol7_latest 147 k
- nano x86_64 2.3.1-10.el7 ol7_latest 438 k
- telnet x86_64 1:0.17-65.el7_8 ol7_latest 64 k
- Installing for dependencies:
- acl x86_64 2.2.51-15.el7 ol7_latest 81 k
- binutils x86_64 2.27-43.base.0.1.el7_8.1 ol7_latest 5.9 M
- cryptsetup-libs x86_64 2.0.3-6.el7 ol7_latest 338 k
- dbus x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 245 k
- dbus-libs x86_64 1:1.10.24-14.0.1.el7_8 ol7_latest 169 k
- device-mapper x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 295 k
- device-mapper-libs x86_64 7:1.02.164-7.0.1.el7_8.2 ol7_latest 324 k
- dracut x86_64 033-568.0.3.el7 ol7_latest 330 k
- elfutils-default-yama-scope noarch 0.176-4.el7 ol7_latest 32 k
- elfutils-libs x86_64 0.176-4.el7 ol7_latest 290 k
- hardlink x86_64 1:1.0-19.el7 ol7_latest 14 k
- json-c x86_64 0.11-4.el7_0 ol7_latest 30 k
- kmod x86_64 20-28.0.3.el7 ol7_latest 125 k
- kmod-libs x86_64 20-28.0.3.el7 ol7_latest 53 k
- kpartx x86_64 0.4.9-131.0.1.el7 ol7_latest 80 k
- libsmartcols x86_64 2.23.2-63.0.1.el7 ol7_latest 141 k
- libuser x86_64 0.60-9.el7 ol7_latest 400 k
- libutempter x86_64 1.1.6-4.el7 ol7_latest 24 k
- lz4 x86_64 1.7.5-3.el7 ol7_latest 98 k
- pkgconfig x86_64 1:0.27.1-4.el7 ol7_latest 53 k
- procps-ng x86_64 3.3.10-27.el7 ol7_latest 290 k
- qrencode-libs x86_64 3.4.1-3.el7 ol7_latest 49 k
- systemd x86_64 219-73.0.3.el7_8.9 ol7_latest 5.1 M
- systemd-libs x86_64 219-73.0.3.el7_8.9 ol7_latest 417 k
- tar x86_64 2:1.26-35.el7 ol7_latest 845 k
- util-linux x86_64 2.23.2-63.0.1.el7 ol7_latest 2.0 M
- xz x86_64 5.2.2-1.el7 ol7_latest 228 k
- Transaction Summary
- ====================================================================================================================================
- Install 3 Packages (+27 Dependent packages)
- Total download size: 18 M
- Installed size: 71 M
- Downloading packages:
- (1/30): acl-2.2.51-15.el7.x86_64.rpm | 81 kB 00:00:00
- (2/30): cryptsetup-libs-2.0.3-6.el7.x86_64.rpm | 338 kB 00:00:01
- (3/30): dbus-1.10.24-14.0.1.el7_8.x86_64.rpm | 245 kB 00:00:00
- (4/30): dbus-libs-1.10.24-14.0.1.el7_8.x86_64.rpm | 169 kB 00:00:00
- (5/30): device-mapper-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 295 kB 00:00:01
- (6/30): device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64.rpm | 324 kB 00:00:01
- (7/30): dracut-033-568.0.3.el7.x86_64.rpm | 330 kB 00:00:01
- (8/30): elfutils-default-yama-scope-0.176-4.el7.noarch.rpm | 32 kB 00:00:00
- (9/30): elfutils-libs-0.176-4.el7.x86_64.rpm | 290 kB 00:00:01
- (10/30): hardlink-1.0-19.el7.x86_64.rpm | 14 kB 00:00:00
- (11/30): iputils-20160308-10.el7.x86_64.rpm | 147 kB 00:00:00
- (12/30): json-c-0.11-4.el7_0.x86_64.rpm | 30 kB 00:00:00
- (13/30): kmod-20-28.0.3.el7.x86_64.rpm | 125 kB 00:00:00
- (14/30): kmod-libs-20-28.0.3.el7.x86_64.rpm | 53 kB 00:00:00
- (15/30): kpartx-0.4.9-131.0.1.el7.x86_64.rpm | 80 kB 00:00:01
- (16/30): libsmartcols-2.23.2-63.0.1.el7.x86_64.rpm | 141 kB 00:00:00
- (17/30): binutils-2.27-43.base.0.1.el7_8.1.x86_64.rpm | 5.9 MB 00:00:14
- (18/30): libutempter-1.1.6-4.el7.x86_64.rpm | 24 kB 00:00:00
- (19/30): lz4-1.7.5-3.el7.x86_64.rpm | 98 kB 00:00:00
- (20/30): nano-2.3.1-10.el7.x86_64.rpm | 438 kB 00:00:01
- (21/30): libuser-0.60-9.el7.x86_64.rpm | 400 kB 00:00:02
- (22/30): pkgconfig-0.27.1-4.el7.x86_64.rpm | 53 kB 00:00:00
- (23/30): qrencode-libs-3.4.1-3.el7.x86_64.rpm | 49 kB 00:00:00
- (24/30): procps-ng-3.3.10-27.el7.x86_64.rpm | 290 kB 00:00:01
- (25/30): systemd-libs-219-73.0.3.el7_8.9.x86_64.rpm | 417 kB 00:00:01
- (26/30): tar-1.26-35.el7.x86_64.rpm | 845 kB 00:00:03
- (27/30): telnet-0.17-65.el7_8.x86_64.rpm | 64 kB 00:00:00
- (28/30): util-linux-2.23.2-63.0.1.el7.x86_64.rpm | 2.0 MB 00:00:10
- (29/30): xz-5.2.2-1.el7.x86_64.rpm | 228 kB 00:00:01
- (30/30): systemd-219-73.0.3.el7_8.9.x86_64.rpm | 5.1 MB 00:00:18
- ------------------------------------------------------------------------------------------------------------------------------------
- Total 535 kB/s | 18 MB 00:00:35
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Installing : xz-5.2.2-1.el7.x86_64 1/30
- Installing : lz4-1.7.5-3.el7.x86_64 2/30
- Installing : libutempter-1.1.6-4.el7.x86_64 3/30
- Installing : 1:hardlink-1.0-19.el7.x86_64 4/30
- Installing : libuser-0.60-9.el7.x86_64 5/30
- Installing : kmod-libs-20-28.0.3.el7.x86_64 6/30
- Installing : json-c-0.11-4.el7_0.x86_64 7/30
- Installing : qrencode-libs-3.4.1-3.el7.x86_64 8/30
- Installing : binutils-2.27-43.base.0.1.el7_8.1.x86_64 9/30
- install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
- install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
- install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
- install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
- install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
- Installing : libsmartcols-2.23.2-63.0.1.el7.x86_64 10/30
- Installing : 2:tar-1.26-35.el7.x86_64 11/30
- Installing : 1:pkgconfig-0.27.1-4.el7.x86_64 12/30
- Installing : acl-2.2.51-15.el7.x86_64 13/30
- Installing : util-linux-2.23.2-63.0.1.el7.x86_64 14/30
- Installing : procps-ng-3.3.10-27.el7.x86_64 15/30
- Installing : kpartx-0.4.9-131.0.1.el7.x86_64 16/30
- Installing : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 17/30
- Installing : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 18/30
- Installing : cryptsetup-libs-2.0.3-6.el7.x86_64 19/30
- Installing : dracut-033-568.0.3.el7.x86_64 20/30
- Installing : kmod-20-28.0.3.el7.x86_64 21/30
- Installing : elfutils-libs-0.176-4.el7.x86_64 22/30
- Installing : systemd-libs-219-73.0.3.el7_8.9.x86_64 23/30
- Installing : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 24/30
- Installing : systemd-219-73.0.3.el7_8.9.x86_64 25/30
- Failed to get D-Bus connection: Operation not permitted
- Installing : elfutils-default-yama-scope-0.176-4.el7.noarch 26/30
- Installing : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 27/30
- Installing : iputils-20160308-10.el7.x86_64 28/30
- Installing : nano-2.3.1-10.el7.x86_64 29/30
- Installing : 1:telnet-0.17-65.el7_8.x86_64 30/30
- Verifying : acl-2.2.51-15.el7.x86_64 1/30
- Verifying : 1:pkgconfig-0.27.1-4.el7.x86_64 2/30
- Verifying : 2:tar-1.26-35.el7.x86_64 3/30
- Verifying : libsmartcols-2.23.2-63.0.1.el7.x86_64 4/30
- Verifying : util-linux-2.23.2-63.0.1.el7.x86_64 5/30
- Verifying : elfutils-default-yama-scope-0.176-4.el7.noarch 6/30
- Verifying : systemd-219-73.0.3.el7_8.9.x86_64 7/30
- Verifying : binutils-2.27-43.base.0.1.el7_8.1.x86_64 8/30
- Verifying : procps-ng-3.3.10-27.el7.x86_64 9/30
- Verifying : 1:dbus-1.10.24-14.0.1.el7_8.x86_64 10/30
- Verifying : systemd-libs-219-73.0.3.el7_8.9.x86_64 11/30
- Verifying : qrencode-libs-3.4.1-3.el7.x86_64 12/30
- Verifying : 1:telnet-0.17-65.el7_8.x86_64 13/30
- Verifying : 7:device-mapper-1.02.164-7.0.1.el7_8.2.x86_64 14/30
- Verifying : json-c-0.11-4.el7_0.x86_64 15/30
- Verifying : dracut-033-568.0.3.el7.x86_64 16/30
- Verifying : cryptsetup-libs-2.0.3-6.el7.x86_64 17/30
- Verifying : lz4-1.7.5-3.el7.x86_64 18/30
- Verifying : iputils-20160308-10.el7.x86_64 19/30
- Verifying : xz-5.2.2-1.el7.x86_64 20/30
- Verifying : kmod-libs-20-28.0.3.el7.x86_64 21/30
- Verifying : 7:device-mapper-libs-1.02.164-7.0.1.el7_8.2.x86_64 22/30
- Verifying : kpartx-0.4.9-131.0.1.el7.x86_64 23/30
- Verifying : elfutils-libs-0.176-4.el7.x86_64 24/30
- Verifying : libuser-0.60-9.el7.x86_64 25/30
- Verifying : kmod-20-28.0.3.el7.x86_64 26/30
- Verifying : 1:hardlink-1.0-19.el7.x86_64 27/30
- Verifying : 1:dbus-libs-1.10.24-14.0.1.el7_8.x86_64 28/30
- Verifying : nano-2.3.1-10.el7.x86_64 29/30
- Verifying : libutempter-1.1.6-4.el7.x86_64 30/30
- Installed:
- 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
- Dependency Installed:
- acl.x86_64 0:2.2.51-15.el7 binutils.x86_64 0:2.27-43.base.0.1.el7_8.1
- cryptsetup-libs.x86_64 0:2.0.3-6.el7 dbus.x86_64 1:1.10.24-14.0.1.el7_8
- 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
- device-mapper-libs.x86_64 7:1.02.164-7.0.1.el7_8.2 dracut.x86_64 0:033-568.0.3.el7
- elfutils-default-yama-scope.noarch 0:0.176-4.el7 elfutils-libs.x86_64 0:0.176-4.el7
- hardlink.x86_64 1:1.0-19.el7 json-c.x86_64 0:0.11-4.el7_0
- kmod.x86_64 0:20-28.0.3.el7 kmod-libs.x86_64 0:20-28.0.3.el7
- kpartx.x86_64 0:0.4.9-131.0.1.el7 libsmartcols.x86_64 0:2.23.2-63.0.1.el7
- libuser.x86_64 0:0.60-9.el7 libutempter.x86_64 0:1.1.6-4.el7
- lz4.x86_64 0:1.7.5-3.el7 pkgconfig.x86_64 1:0.27.1-4.el7
- procps-ng.x86_64 0:3.3.10-27.el7 qrencode-libs.x86_64 0:3.4.1-3.el7
- systemd.x86_64 0:219-73.0.3.el7_8.9 systemd-libs.x86_64 0:219-73.0.3.el7_8.9
- tar.x86_64 2:1.26-35.el7 util-linux.x86_64 0:2.23.2-63.0.1.el7
- xz.x86_64 0:5.2.2-1.el7
- Complete!
- bash-4.2#
- bash-4.2# ping alice
- PING alice (172.21.0.2) 56(84) bytes of data.
- 64 bytes from alice.foo (172.21.0.2): icmp_seq=1 ttl=64 time=0.093 ms
- 64 bytes from alice.foo (172.21.0.2): icmp_seq=2 ttl=64 time=0.078 ms
- ^C
- --- alice ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1006ms
- rtt min/avg/max/mdev = 0.078/0.085/0.093/0.011 ms
- bash-4.2#
- bash-4.2#
- bash-4.2# telnet alice
- Trying 172.21.0.2...
- telnet: connect to address 172.21.0.2: Connection refused
- bash-4.2#
- bash-4.2# telnet alice:3306
- telnet: alice:3306: Name or service not known
- alice:3306: Unknown host
- bash-4.2#
- bash-4.2# telnet alice:33060
- telnet: alice:33060: Name or service not known
- alice:33060: Unknown host
- bash-4.2#
- bash-4.2# telnet alice:3307
- telnet: alice:3307: Name or service not known
- alice:3307: Unknown host
- bash-4.2#
- bash-4.2# telnet alice 3307
- Trying 172.21.0.2...
- telnet: connect to address 172.21.0.2: Connection refused
- bash-4.2#
- bash-4.2# telnet alice 33060
- Trying 172.21.0.2...
- Connected to alice.
- Escape character is '^]'.
- �^CConnection closed by foreign host.
- bash-4.2#
- bash-4.2# mysql mysql -h alice -P 33060 --protocol=tcp -u root -p
- Enter password:
- ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10
- bash-4.2#
- bash-4.2# mysql mysql -h alice -P 3307 --protocol=tcp -u root -p
- Enter password:
- ERROR 2003 (HY000): Can't connect to MySQL server on 'alice' (111)
- bash-4.2#
Add Comment
Please, Sign In to add comment