From d6fd1eae71d25663405fd074899c687a7861ccad Mon Sep 17 00:00:00 2001 From: Shivang Vijay Date: Wed, 29 Mar 2023 17:59:52 +0530 Subject: [PATCH 1/2] Updated Docker Readme.md, Installation of Docker --- fri/DOCKER-README.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/fri/DOCKER-README.md b/fri/DOCKER-README.md index 84f7bf8..32c59e1 100644 --- a/fri/DOCKER-README.md +++ b/fri/DOCKER-README.md @@ -1,3 +1,24 @@ +# Install Docker:- + +Open Terminal and run the following commands:- + +```` +$ sudo apt-get update +$ sudo apt-get install curl +$ curl -fsSL https://get.docker.com/ | sh +```` +Optional command:- To run docker commands without sudo +```` +$ sudo usermod -aG docker +```` +The above command add the laptop username in the docker group, Restart the system to complete the process. + +After restart run + +```` +$ sudo service docker start +```` + # Building FRI Container Now, we elaborate on building FRI as a container, together with the Kong API Gateway. @@ -15,7 +36,7 @@ First build the Docker Container of the FRI. ```` $ git pull -$ sudo docker build -t fri . +$ docker build -t fri . ```` # Running Control-Core FRI with Kong as containers @@ -107,17 +128,17 @@ $ tail -f controlcore.out ```` or ```` -$ sudo docker logs fri -f +$ docker logs fri -f ```` Find the FRI docker container ```` -$ sudo docker ps +$ docker ps ```` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dfdd3b3d3308 fri "python main.py" 38 minutes ago Up 38 minutes 0.0.0.0:80->80/tcp fri Access the container ```` -$ sudo docker exec -it dfdd /bin/bash +$ docker exec -it dfdd /bin/bash ```` From 4fa615f197f1bdeed268ed4930a123b05dd70874 Mon Sep 17 00:00:00 2001 From: Shivang Vijay Date: Wed, 29 Mar 2023 18:01:44 +0530 Subject: [PATCH 2/2] Update DOCKER-README.md general nomeclature used --- fri/DOCKER-README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fri/DOCKER-README.md b/fri/DOCKER-README.md index 32c59e1..459d362 100644 --- a/fri/DOCKER-README.md +++ b/fri/DOCKER-README.md @@ -9,9 +9,9 @@ $ curl -fsSL https://get.docker.com/ | sh ```` Optional command:- To run docker commands without sudo ```` -$ sudo usermod -aG docker +$ sudo usermod -aG docker ```` -The above command add the laptop username in the docker group, Restart the system to complete the process. +The above command add the system username in the docker group, Restart the system to complete the process. After restart run