...
Code Block |
---|
sudo apt install docker.io |
Adding a current user to the docker group to avoid sudo prefix in all docker commands
Code Block |
---|
sudo usermod -aG docker $USER |
...
Download image
without starting the container. example with wordpress Wordpress image.
Code Block |
---|
docker pull wordpress |
...
Code Block | ||
---|---|---|
| ||
<?php phpinfo(); ?> |
Build an image
using Dockerfile in current "." directory
Code Block |
---|
docker build --tag example/amzn-phpinfo . |
...