DevOps Certification Training
LINKING CONTAINERS IN DOCKER
Step 1: Create and Run, two docker containers namely container1 and container2 with Ubuntu image
$ docker run –it --name <name-of-container> --link <container-name> -d ubuntu
Step 2: Exec into Container2, and update the container using the following commands:
$ docker exec –it <container-name> bash
$ sudo apt-get update
- +91-7022374614 - US: 1-800-216-8930 (Toll Free)
LINKING CONTAINERS IN DOCKER
Step 1: Create and Run, two docker containers namely container1 and container2 with Ubuntu image
$ docker run –it --name <name-of-container> --link <container-name> -d ubuntu
Step 2: Exec into Container2, and update the container using the following commands:
$ docker exec –it <container-name> bash
$ sudo apt-get update
- +91-7022374614 - US: 1-800-216-8930 (Toll Free)