This blog post will explain how to create a container from an image with Docker. These commands below can be executed in the Docker engine terminal to create a container. This first command will download an image from the Docker hub. The second command will create a container named mycontainer that uses the wordpress image. The –publish argument will map port 8080 on the host to port 80 inside the container.
docker pull wordpress
docker create –publish 8080:80 –name mycontainer wordpress