From 3c008117c34321d444770cd844f8583793ea01ed Mon Sep 17 00:00:00 2001 From: Ygor Perez de Oliveira Date: Mon, 21 Mar 2022 10:51:47 -0300 Subject: [PATCH 1/2] Add new step 1 "Exit MySQL" In the "Connect to MySQL" section, if you don't exit MySQL with the command `exit`, you can't proceed to create the container --- get-started/07_multi_container.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/get-started/07_multi_container.md b/get-started/07_multi_container.md index 4cc4c6b9a0..725a6e441f 100644 --- a/get-started/07_multi_container.md +++ b/get-started/07_multi_container.md @@ -110,13 +110,20 @@ address)? To figure it out, we're going to make use of the [nicolaka/netshoot](https://github.com/nicolaka/netshoot) container, which ships with a _lot_ of tools that are useful for troubleshooting or debugging networking issues. -1. Start a new container using the nicolaka/netshoot image. Make sure to connect it to the same network. + +1. Exit MySQL if you haven't already (if you have typed any thing before press `;` and hit enter). + + ```console + mysql> exit + ``` + +2. Start a new container using the nicolaka/netshoot image. Make sure to connect it to the same network. ```console $ docker run -it --network todo-app nicolaka/netshoot ``` -2. Inside the container, we're going to use the `dig` command, which is a useful DNS tool. We're going to look up +3. Inside the container, we're going to use the `dig` command, which is a useful DNS tool. We're going to look up the IP address for the hostname `mysql`. ```console From a4953322d2ac433442ccfddd75ace9fc3f5178a5 Mon Sep 17 00:00:00 2001 From: Ygor Perez de Oliveira Date: Sat, 26 Mar 2022 04:30:52 -0300 Subject: [PATCH 2/2] Moved intructions from line 112 to 101 Edit made based on usha-mandya comment on issue #14417 --- get-started/07_multi_container.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/get-started/07_multi_container.md b/get-started/07_multi_container.md index 725a6e441f..c15678cd00 100644 --- a/get-started/07_multi_container.md +++ b/get-started/07_multi_container.md @@ -98,8 +98,13 @@ For now, we will create the network first and attach the MySQL container at star +--------------------+ 5 rows in set (0.00 sec) ``` +Exit the MySQL shell to return to the shell on our machine. - Hooray! We have our `todos` database and it's ready for us to use! + ```console + mysql> exit + ``` + + Hooray! We have our `todos` database and it's ready for us to use! ## Connect to MySQL @@ -110,20 +115,13 @@ address)? To figure it out, we're going to make use of the [nicolaka/netshoot](https://github.com/nicolaka/netshoot) container, which ships with a _lot_ of tools that are useful for troubleshooting or debugging networking issues. - -1. Exit MySQL if you haven't already (if you have typed any thing before press `;` and hit enter). - - ```console - mysql> exit - ``` - -2. Start a new container using the nicolaka/netshoot image. Make sure to connect it to the same network. +1. Start a new container using the nicolaka/netshoot image. Make sure to connect it to the same network. ```console $ docker run -it --network todo-app nicolaka/netshoot ``` -3. Inside the container, we're going to use the `dig` command, which is a useful DNS tool. We're going to look up +2. Inside the container, we're going to use the `dig` command, which is a useful DNS tool. We're going to look up the IP address for the hostname `mysql`. ```console