Skip to content

kettroni/Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Docker

Docker Course Exercises

Ex1.1

1.1

Ex1.2

1.2

Ex 1.3

Firstly I ran ubuntu:16.04 container with: 1.3p1

It opens up the root immediately and before installing curl to the container first I run apt-get update: 1.3p2

Then after I run apt-get install curl: 1.3p3

Now I can execute the given script from the exercise like so: 1.3p4

Ex 1.4

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:
1.4

Ex 1.5

Dockerfile

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

Ex 1.6

Dockerfile

After build then just run with command:

docker run -v c:/users/Ex1.6/logs.txt:/logs.txt -p 8000:8000 -it onesix

Ex 1.7

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

Ex 1.8

All the instructions are found in the docker hub page:

About

Docker Course Exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published