Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am lost trying ot complete the following and keep getting an error: The command tells docker to build an image ( build ) ,

I am lost trying ot complete the following and keep getting an error:
The command tells docker to build an image (build), with the name test-dockerfile (-t means we are providing a name), and to use the current directory (.). So the command format is:
docker build -t
When executed you will get the following output:
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM ubuntu:latest
latest: Pulling from library/ubuntu
6b98dfc16071: Pull complete
4001a1209541: Pull complete
6319fc68c576: Pull complete
b24603670dc3: Pull complete
97f170c87c6f: Pull complete
Digest: sha256:5f4bdc3467537cbbe563e80db2c3ec95d548a9145d64453b06939c4592d67b6d
Status: Downloaded newer image for ubuntu:latest
--->113a43faa138
Step 2/2 : CMD ["echo","It worked!"]
---> Running in 3fcfdc028360
Removing intermediate container 3fcfdc028360
--->4482338d49b4
Successfully built 4482338d49b4
Successfully tagged test-dockerfile:latestI n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Assess three steps in the selection process.

Answered: 1 week ago

Question

Identify the steps in job analysis.

Answered: 1 week ago