DevOps Classroomnotes 23/Jun/2022

Docker networking

  • Lets create two docker containers
  • Refer Here for formatting the outputs of inspect section
  • Now lets find their ip addresses
  • Now lets get the ip address of the host (machine where is docker is installed)
  • Lets find if the container can be pinged from the host
  • Lets find if the networking between two containers is working or not
  • Containers by default can communicate with each other using ip addresses but not by names.
  • The bridge network is created by default when we install docker


  • Lets create a new bridge network
  • create two containers on the new bridge network


  • The corrected version of nopcomerce
FROM mcr.microsoft.com/dotnet/aspnet:6.0
ADD https://github.com/nopSolutions/nopCommerce/releases/download/release-4.50.3/nopCommerce_4.50.3_NoSource_linux_x64.zip /Nop/nopCommerce_4.50.3_NoSource_linux_x64.zip
WORKDIR /Nop
RUN apt update && apt install unzip -y && mkdir /Nop/bin && mkdir /Nop/logs && unzip ./nopCommerce_4.50.3_NoSource_linux_x64.zip
EXPOSE 80
CMD ["/usr/bin/dotnet", "/Nop/Nop.Web.dll"]

Exercise

  • Try create mysql and phpmyadmin in the same network and establish connection using host name (Create a bridge network)
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%