- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 217字
- 2021-07-02 13:41:48
Installing Docker for macOS
Docker wraps a micro Linux with the hypervisor framework to build a native application on macOS, which means we don't need third-party virtualization tools to use Docker on a Mac. To benefit from the hypervisor framework, you must upgrade your macOS to version 10.10.3 or more:
- Download the Docker package and install it: https://download.docker.com/mac/stable/Docker.dmg.
Docker for Windows requires no third-party tools either. Check for the installation guide at the following link: https://docs.docker.com/docker-for-windows/install.
- You're now in Docker. Try creating and running your very first Docker container. Run the command with sudo if you're on Linux:
$ docker run alpine ls
bin dev etc home lib media mnt proc root run sbin srv sys tmp usr var
- You'll see that you're under a root directory instead of your current one. Let's check the process list again:
$ docker run alpine ps aux
PID USER TIME COMMAND
1 root 0:00 ps aux
It's isolated, as expected. You're now all ready to work with the container.
Alpine is a Linux distribution. Since it's really small in size, many people use it as their base image to build their application container. Do note, however, that it still has a few differences from mainstream Linux distributions. For example, Alpine uses musl libc, while most distributions use glibc.
推薦閱讀
- OpenCV for Secret Agents
- Python應用輕松入門
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Creating Stunning Dashboards with QlikView
- Practical Microservices
- Struts 2.x權威指南
- jQuery技術內幕:深入解析jQuery架構設計與實現(xiàn)原理
- 遠方:兩位持續(xù)創(chuàng)業(yè)者的點滴思考
- SAP Web Dynpro for ABAP開發(fā)技術詳解:基礎應用
- 前端架構設計
- Pandas入門與實戰(zhàn)應用:基于Python的數據分析與處理
- PhoneGap 3.x Mobile Application Development Hotshot
- 狼書(卷2):Node.js Web應用開發(fā)
- Java程序設計
- 前端程序員面試筆試通關寶典