January 2018
Intermediate to advanced
414 pages
10h 29m
English
Now that we have our Docker system ready, let's run our first example, just running a simple Docker with the following command:
docker run alpine echo hello from a Docker
The output should look like this:
Unable to find image 'alpine:latest' locallylatest: Pulling from library/alpineb56ae66c2937: Pull completeDigest: sha256:d6bfc3baf615dc9618209a8d607ba2a8103d9c8a405b3bd8741d88b4bef36478Status: Downloaded newer image for alpine:latesthello from a Docker
What we have done here is we've asked Docker to create or run a Docker-based on an image; in this example, Alpine Linux. Since we haven't provided any version, we will get the latest version of the Alpine Linux image. Additionally, we indicate to Docker that when we run ...
Read now
Unlock full access