![]() ![]() ![]() Read more about Docker images and containers in the Docker images and Docker containers sections of the guide, respectively.ĭocker volumes are used to persist data that is generated by running Docker containers. You can think of image registries as the NPM equivalent for Docker images. The most popular Docker image registry is Docker Hub. Docker images can be saved to image registries for others to download the images. A Docker image can be thought of as the blueprints and code used by a Docker container. The two objects users will most often be directly working with are Docker images and Docker containers.ĭocker images contain the code that is needed to run an application and Docker containers are the isolated environments that are running the code from Docker images. Docker makes it possible to build containerized applications that hold the right versions of all dependencies and can run as intended on different machines.ĭocker has 4 types of "objects" it uses to be able to create these isolated environments: images, containers, volumes, and networks. The same goes for any other dependency used in applications, such as python, ruby, php, typescript, nginx, apache, mysql, postgres, etc. For example, if trying to run an API that is built with Node.js, and it was developed and tested on a machine using Node.js 12.8, it might not necessarily run the same on a machine that has Node.js version 10.18 installed. The reason why running applications on different machines is so difficult is that all the right versions of an application's dependencies must be installed for it to run as expected. It's also important for developers to be able to run applications as expected on any computer to get up and running quickly and collaborate with other developers no matter how they've configured their computer. This is important to be able to develop applications on a local machine and have them run as expected in a deployed environment. There has always been a need to make sure applications can run in isolated environments for applications to run as expected on different machines/servers. Table of contents What is Docker? What about virtual machines? Docker engine Installing Docker Dockerfile Docker images Building and tagging images Listing images Image registries and pulling/pushing images Removing images Saving and loading images Docker containers Running containers Detached mode and viewing logs Exposing ports Stopping and removing containers Listing containers Execute commands in a running container Get details of a container Docker volumes Docker networks Removing unused images, containers, and volumes Docker Compose Managing environment variables Deploying and running Docker applications Dokku Heroku and Digital Ocean App Platform Kubernetes Avoiding the Docker command line Docker Desktop Visual Studio Code Dockstation Debugging dockerized apps Visual Studio Code JetBrains IDEs Navigating the Docker documentation Additional resources What is Docker?ĭocker is a tool that helps run applications in isolated environments. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |