Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 638 Bytes

File metadata and controls

17 lines (12 loc) · 638 Bytes

Exercise 1:

Create image using alpine:3.19.1 , label the image as env=dev application=ping version=com.example.version=0.5 , Install the packages curl, git, ping and it should print curl output of www.example.com

After the image is built below command should output your image in terminal

docker images --filter "label=env=dev" --filter "label=application=ping" --filter "label=com.example.version=0.5"

label filter

If we run the container , it should print output similar to below

docker run -it curl:0.5

curl-output