Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 680 Bytes

docker_pull_run.md

File metadata and controls

35 lines (20 loc) · 680 Bytes

docker pull/run

First we have to pull an image

docker pull alpine

Lets take a look what we are pulling(downloading): Alpine Image

Every Image has a tag. Default is "latest". Be carfeule if you want to rely on in productional environment.

docker run alpine

Why does nothing happens?

docker run alpine echo "hello world"

Now interactive

docker run -ti alpine

What do you see inside an container? What do you see outside an container?

Are Containers persistent?

docker run -ti alpine

touch hugo
ls -l
exit

docker run -ti alpine

ls -l

next