Hello world in a container (Engine)
Hello world in a container
So what’s this Docker thing all about?
Docker allows you to run applications, worlds you create, inside containers. Running an application inside a container takes a single command: docker run
.
Note: Depending on your Docker system configuration, you may be required to preface each
docker
command on this page withsudo
. To avoid this behavior, your system administrator can create a Unix group calleddocker
and add users to it.
Run a Hello world
Let’s run a hello world container.
$ docker run ubuntu /bin/echo 'Hello world' Hello world
You just launched your first container!
In this example:
docker run
runs a container.ubuntu
is the image you run, for example the Ubuntu operating