Commit 01fcf708 authored by Syed Areeb Hussain's avatar Syed Areeb Hussain
Browse files

Upload New File

parent a5d1d5c5
Internsip 2
Task 01)
docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1
sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
docker-compose --version
docker-compose version 1.25.0, build unknown
Task 02)
a) For this task I have use GoLang and the folder "mini server" is in the main branch of the project.
b) docker build -t miniserver.v1
d) docker build -t miniserver.v1
e) docker run -p 20221:3000 miniserver.v1
Task 03)
d) docker run --name miniwhoami_1 -p 20231:3000 miniwhoami.v1
docker run --name miniwhoami_2 -p 20232:3000 miniwhoami.v1
Task 04)
a) docker exec -i --tty <CONTAINER ID> bash
b)To connect to the container with netshoot, the following command can be used:
docker run -ti --net container:miniwhoami_1 nicolaka/netshoot
c) Yes, the containers can communicate with each other. Both with pingand with ping6.
d) Both containers are connected via bridgeDocker's network. This can be observed by running docker network inspect bridge. Both containers are displayed under the rubric Containers.
f) route -n Output of netshoot within miniwhoami_1
Destination Gateway Genmask Flags Metric Ref Use Iface UG 0 0 0 eth0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment