## Followed steps from https://docs.docker.com/engine/installation/linux/ubuntu/ root@ubuntu1604lts:~# apt-get install \ > apt-transport-https \ > ca-certificates \ > curl \ > software-properties-common Reading package lists... Done Building dependency tree Reading state information... Done ca-certificates is already the newest version (20160104ubuntu1). ca-certificates set to manually installed. curl is already the newest version (7.47.0-1ubuntu2.2). The following packages were automatically installed and are no longer required: libdbi-perl libterm-readkey-perl linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-image-4.4.0-63-generic linux-image-4.4.0-64-generic linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-64-generic Use 'apt autoremove' to remove them. The following additional packages will be installed: libcairo-perl libglib-perl libgtk2-perl libpango-perl python3-software-properties software-properties-gtk Suggested packages: libfont-freetype-perl libgtk2-perl-doc The following NEW packages will be installed: libcairo-perl libglib-perl libgtk2-perl libpango-perl The following packages will be upgraded: apt-transport-https python3-software-properties software-properties-common software-properties-gtk 4 upgraded, 4 newly installed, 0 to remove and 148 not upgraded. Need to get 1,206 kB of archives. After this operation, 4,803 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.20 [26.1 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libcairo-perl amd64 1.106-1build1 [88.2 kB] Get:3 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libglib-perl amd64 3:1.320-2 [326 kB] Get:4 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libpango-perl amd64 1.227-1 [154 kB] Get:5 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libgtk2-perl amd64 2:1.2498-1 [534 kB] Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.7 [9,452 B] Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-gtk all 0.96.20.7 [47.2 kB] Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.7 [20.3 kB] Fetched 1,206 kB in 7s (157 kB/s) (Reading database ... 281924 files and directories currently installed.) Preparing to unpack .../apt-transport-https_1.2.20_amd64.deb ... Unpacking apt-transport-https (1.2.20) over (1.2.19) ... Selecting previously unselected package libcairo-perl. Preparing to unpack .../libcairo-perl_1.106-1build1_amd64.deb ... Unpacking libcairo-perl (1.106-1build1) ... Selecting previously unselected package libglib-perl. Preparing to unpack .../libglib-perl_3%3a1.320-2_amd64.deb ... Unpacking libglib-perl (3:1.320-2) ... Selecting previously unselected package libpango-perl. Preparing to unpack .../libpango-perl_1.227-1_amd64.deb ... Unpacking libpango-perl (1.227-1) ... Selecting previously unselected package libgtk2-perl. Preparing to unpack .../libgtk2-perl_2%3a1.2498-1_amd64.deb ... Unpacking libgtk2-perl (2:1.2498-1) ... Preparing to unpack .../software-properties-common_0.96.20.7_all.deb ... Unpacking software-properties-common (0.96.20.7) over (0.96.20.5) ... Preparing to unpack .../software-properties-gtk_0.96.20.7_all.deb ... Unpacking software-properties-gtk (0.96.20.7) over (0.96.20.5) ... Preparing to unpack .../python3-software-properties_0.96.20.7_all.deb ... Unpacking python3-software-properties (0.96.20.7) over (0.96.20.5) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for dbus (1.10.6-1ubuntu3.3) ... Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Setting up apt-transport-https (1.2.20) ... Setting up libcairo-perl (1.106-1build1) ... Setting up libglib-perl (3:1.320-2) ... Setting up libpango-perl (1.227-1) ... Setting up libgtk2-perl (2:1.2498-1) ... Setting up python3-software-properties (0.96.20.7) ... Setting up software-properties-common (0.96.20.7) ... Setting up software-properties-gtk (0.96.20.7) ... root@ubuntu1604lts:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - curl: (28) Connection timed out after 300543 milliseconds gpg: no valid OpenPGP data found. root@ubuntu1604lts:~# export http_proxy="http://www-proxy.us.oracle.com:80" root@ubuntu1604lts:~# export https_proxy="http://www-proxy.us.oracle.com:80" root@ubuntu1604lts:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - OK root@ubuntu1604lts:~# apt-key fingerprint 0EBFCD88 pub 4096R/0EBFCD88 2017-02-22 Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 uid Docker Release (CE deb) sub 4096R/F273FCD8 2017-02-22 root@ubuntu1604lts:~# add-apt-repository \ > "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ > $(lsb_release -cs) \ > stable" root@ubuntu1604lts:~# ubuntu1604lts:~# apt-get install docker-ce Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libdbi-perl libterm-readkey-perl linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-image-4.4.0-63-generic linux-image-4.4.0-64-generic linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-64-generic Use 'apt autoremove' to remove them. The following additional packages will be installed: aufs-tools cgroupfs-mount The following NEW packages will be installed: aufs-tools cgroupfs-mount docker-ce 0 upgraded, 3 newly installed, 0 to remove and 148 not upgraded. Need to get 19.4 MB of archives. After this operation, 89.3 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B] Get:3 https://download.docker.com/linux/ubuntu xenial/stable amd64 docker-ce amd64 17.03.1~ce-0~ubuntu-xenial [19.3 MB] Fetched 19.4 MB in 1min 9s (280 kB/s) Selecting previously unselected package aufs-tools. (Reading database ... 282205 files and directories currently installed.) Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ... Unpacking aufs-tools (1:3.2+20130722-1.1ubuntu1) ... Selecting previously unselected package cgroupfs-mount. Preparing to unpack .../cgroupfs-mount_1.2_all.deb ... Unpacking cgroupfs-mount (1.2) ... Selecting previously unselected package docker-ce. Preparing to unpack .../docker-ce_17.03.1~ce-0~ubuntu-xenial_amd64.deb ... Unpacking docker-ce (17.03.1~ce-0~ubuntu-xenial) ... Processing triggers for libc-bin (2.23-0ubuntu7) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (229-4ubuntu16) ... Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ... Setting up cgroupfs-mount (1.2) ... Setting up docker-ce (17.03.1~ce-0~ubuntu-xenial) ... Processing triggers for libc-bin (2.23-0ubuntu7) ... Processing triggers for systemd (229-4ubuntu16) ... Processing triggers for ureadahead (0.100.0-19) ... root@ubuntu1604lts:~# ### Follow the steps from the link if you are behind proxy https://docs.docker.com/engine/admin/systemd/#httphttps-proxy root@ubuntu1604lts:~# docker network create my_net root@ubuntu1604lts:~# bug.sh >> contains the script provided by reporter root@ubuntu1604lts:~# ./bug.sh Unable to find image 'mysql/mysql-server:8.0' locally 8.0: Pulling from mysql/mysql-server 33a3a5e469a8: Pull complete f3fc7e7a5298: Pull complete 803175977c18: Pull complete 4a7c22df08d7: Pull complete Digest: sha256:055edff6c502c2a0f339f07c34d761c0887b3dc86a6837632e3754b0bbe00377 Status: Downloaded newer image for mysql/mysql-server:8.0 76e6b04f0cd1592d828530cffdd332109d9bb63c60de423ee916da0a7dffa630 Waiting 60 seconds for the server to be up ..........10..........20..........30..........40..........50..........60 #Making sure the server responds mysql: [Warning] Using a password on the command line interface can be insecure. +---------------------+-----------+ | now() | version() | +---------------------+-----------+ | 2017-06-07 08:48:12 | 8.0.1-dmr | +---------------------+-----------+ #this should fail mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1130 (HY000): Host '172.18.0.2' is not allowed to connect to this MySQL server #Setting the role mysql: [Warning] Using a password on the command line interface can be insecure. #this should succeed mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.1-dmr MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> mysql> show grants; +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Grants for root@localhost | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION | | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql>