Docker Course Exercises
Firstly I ran ubuntu:16.04 container with:
It opens up the root immediately and before installing curl to the container first I run apt-get update:
Then after I run apt-get install curl:
Now I can execute the given script from the exercise like so:
First I created a docker file Docker File.
Then I build it with:
docker build -t curler .
Now that I had created the image I simply ran it:
Building the image with Dockerfile:
docker build -t onefive .
After that, I ran the image with success with the following code:
docker run -p 5000:5000 -it onefive
After build then just run with command:
docker run -v c:/users/Ex1.6/logs.txt:/logs.txt -p 8000:8000 -it onesix
Dockerfile Front (Added API_URL)
Dockerfile Back (unchanged from 1.6)
Front was run with:
docker run -p 5000:5000 -it onesevenfront
Back was run with:
docker run -v c:/users/Ex1.6/logs.txt:/logs.txt -p 8000:8000 -it onesix
All the instructions are found in the docker hub page: