Skip to content

Cloud-NC-Engineering-Thailand/cloudnc-docker-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a new file /root/Dockerfile to build a container image from. It should:

  • use bash as base
  • run ping killercoda.com

Build the image and tag it as pinger.

Run the image (create a container) named my-ping.


Info
Dockerfile: List of commands from which an Image can be build

Image: Binary file which includes all data/requirements to be run as a Container

Container: Running instance of an Image

Registry: Place where we can push/pull Images to/from

Solution

Create the /root/Dockerfile:


FROM bash
CMD ["ping", "killercoda.com"]

Build the image:


docker build -t pinger .

docker image ls
```{{exec}}

<br>

Run the image:

<br>

```plain
docker run --name my-ping pinger
```{{exec}}

</details>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages