docker build script


pwilliams@pwdocker3:~$ cat >Dockerfile
FROM busybox:latest
CMD echo Hello World!!

pwilliams@pwdocker3:~$ cat Dockerfile
FROM busybox:latest
CMD echo Hello World!!

pwilliams@pwdocker3:~$ docker build .

Sending build context to Docker daemon 20.99 kB
Sending build context to Docker daemon
Step 0 : FROM busybox:latest
latest: Pulling from busybox
cf2616975b4a: Pull complete
6ce2e90b0bc7: Pull complete
8c2e06607696: Already exists
busybox:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:38a203e1986cf79639cfb9b2e1d6e773de84002feea2d4eb006b52004ee8502d
Status: Downloaded newer image for busybox:latest
—> 8c2e06607696
Step 1 : CMD echo Hello World!!
—> Running in 4141dfc3a0ce
—> 8e51f94add31
Removing intermediate container 4141dfc3a0ce
Successfully built 8e51f94add31

 

pwilliams@pwdocker3:~$ ^C
pwilliams@pwdocker3:~$
pwilliams@pwdocker3:~$ docker run 8e51f94add31
Hello World!!

Advertisements

About home_pw@msn.com

Computer Programmer who often does network administration with focus on security servers. Very strong in Microsoft Azure cloud!
This entry was posted in docker. Bookmark the permalink.