What is Docker
Docker is a platform as a service(PaaS) product that containerizes applications with only necessary dependencies. As a result, no matter what OS runs the container, it will behave the same. Using a tool such as Kubernetes allows for multiple containers and thereby instances of the same application to be deployed at once. Docker allows containers to be tagged allowed for versioning and additional metadata to be saved. In production environments, docker is used to create containers but Kubernetes is used to deploy containers.
How to Install Docker for Mac
- Go to https://www.docker.com/products/docker-desktop and download Docker Desktop
- Move Docker Desktop to the Applications Folder
- Close the Installer
Open Docker Desktop
You may get the following prompt, just select open and continue
Create a Docker account and sign in.
Building an Image and Running Container
- Go the HAXCMS GitHub repo and download it.
- Open VSCode to the repo or terminal and navigate to the directory
- Build the docker repo and name it by using the following command
docker build . -t <Insert Wanted Name Here>
- Run the container by using the 'docker run -dp 80:80 '
- Open browser to
localhost:80
How to stop container
- Open Terminal
- Run
docker ps
- Run
docker stop <containerID>
Top comments (0)