You can learn more about these concepts in the tutorial Docker Explained: Using Dockerfiles to automate building of images. A container, is a read and write instance that your create out of the image you built.It’s what you ship and share through Docker Hub or your private registry. An image is a read-only resource that you create using a configuration file called Dockerfile.Before we dive in, let’s clarify the difference between images and containers. The most common place you may run into issues is when you’re building your Docker image from a Dockerfile. Step 1 - Resolving Problems with the Dockerfile
You can visit the Docker web site or follow the official installation documentation to install Docker on your local machine. To install Docker on a server, you can follow the how-to guides for CentOS 7 or for Ubuntu 16.04. Docker installed on a server or your local machine.In this troubleshooting guide aimed at people new to Docker, you’ll troubleshoot problems when building Docker images, resolve naming collisions when running containers, and fix issues that come up when communication between containers. You may encounter typos, issues with runtime libraries and modules, naming collisions, or issues when communicating with other containers. Unfortunately, problems may arise when building your image and integrating all of the layers that your app needs, especially if you’re new to Docker images and containers. Docker makes it easy to wrap your applications and services in containers so you can run them anywhere.