How to Link Multiple Container in Docker ? Last Updated : 17 Jan, 2021 Comments Improve Suggest changes 1 Likes Like Report Docker is a free software created by Docker Inc. and it enables clients to create free and confined environments where the users can deploy their applications. A container is a standard unit of software that packages up code and all its dependencies from one computing environment and runs it quickly and reliably into another computing environment. Container linking allows multiple containers to link with each other. Linking the containers, provide a secure channel through which Docker containers can communicate with each other. This article describes the step-by-step process of container linking. RequirementsInstalled docker software in your respective operating system.Implementation: Follow the below steps to link your c Step 1:The first step is to download the Jenkins image from the docker hub repository using the below command:sudo docker Jenkins pullStep 2: Once you have downloaded the image, the next step is to run the container. Here you can also specify a name to the container using the name option. To do so follow the below command.sudo docker run –name=jenkinsa -d jenkinsStep 3: Now after creating the source container, it’s time to launch the destination container. Along with launching the destination container, we will also link it with the source container. For our destination container, we will be using the standard Ubuntu image, you can also use any other image according to your convenience. Use the below command to launch and link the containers:sudo docker run –name=jenkinsc –link=jenkinsa:alias-src -it ubuntu:latest /bin/bashStep 4: You can use the below command to check which two containers are running.sudo docker ps Step 5: Now in this step we will attach to the receiving container using the below command.sudo docker attach JenkinsStep 6: After attaching to the receiving container you can run the below command and you will notice new variables for linking with the source container.env Comment P patidarakshay999 Follow 1 Improve P patidarakshay999 Follow 1 Improve Article Tags : TechTips How To Docker docker Explore How ToHow to Recover Deleted Photos from WhatsApp [5 Methods]8 min readHow to Delete Discord Servers: Step by Step Guide7 min readHow to Fix âThis Copy of Windows is Not Genuineâ Error?6 min readHow to Delete Discord Account: A Complete Guide4 min readFlowchart in Google Docs5 min readHow to Password Protect a Google Drive Folder: Comprehensive Guide9 min readHow to Deploy a Replica Set in MongoDB?5 min readMACHow to Find Your Mac Address?5 min readMAC Filtering in Computer Network3 min readHow to validate MAC address using Regular Expression6 min readHow to get the MAC Address â 10 Different Methods â Kali Linux5 min readExtracting MAC address using Python3 min readAI ToolsAI Tools List: 50+ Top Picks5 min read10 Best AI Tools to Boost Productivity in 202514 min readTop 15 AI Testing Tools for Test Automation (2025 Updated)14 min readTop 20 Applications of Artificial Intelligence (AI) in 202513 min readShortcut KeyWindows Keyboard Shortcuts A to Z with PDF (All Windows Versions)11 min readMac Keyboard Shortcuts for All Mac Users (2025 Updated)9 min readTop 20 Excel Shortcuts That You Need To Know6 min readMicrosoft Word Shortcut Keys7 min readMicrosoft Office Keyboard Shortcuts5 min readGeneral Keyboard Shortcuts For Visual Studio Code3 min read Like