Before we do anything interesting to usDocker file, We need to install Docker.
The exact installation instructions depend on your operating system.
The Docker website contains detailed instructions on the following:
I am a Mac user and I will show you the exact steps to install Docker on a Mac. If you use Windows or Linux, please refer to the instructions (I don't have a Windows or Linux desktop computer to try).
Docker Desktop for MacIs the name of the software you need to install, you can find it here:https://hub.docker.com/editions/community/docker-ce-desktop-mac/
After downloading the installation file over 400MB in size, run it, and then you will be asked to move the Docker application to the Applications folder.
Do this, and then run the application:
The first thing that happens is that it requires you to install the command line tools, and it requires your permission (and password):
You will see a whale icon appear on the Mac toolbar, initially notifying you that Docker Desktop is starting:
Upon completion, you will get a green light:
Now you will install the Docker command line tool.
Open terminal and run
Make sure everything is in order.
More docker tutorials:
- Introduction to Docker
- Introduction to Docker images
- Introduction to Docker containers
- Install Docker on macOS
- The first step to use Docker after installation
- Use Docker Desktop to manage containers
- Create a simple Node.js Hello World Docker container from scratch
- What to do if the Docker container exits immediately
- Use Docker containers from the command line
- Use Docker image from the command line
- Share Docker images on Docker Hub
- How to access files outside the Docker container
- How to commit changes to the Docker image
- Update the deployed container based on the Docker image