As a programmer, I often hear Docker mentioned, but I never know how to use it or when to use it.
Therefore, learning Docker has never been put on the agenda.
This week I looked up the docker-related market size:
- Revenue from Huawei’s cloud business grew 168 percent year-on-year in 2020, the company said.
- Alibaba said revenue from its cloud computing business rose 50 percent year-on-year to 60.12 billion yuan in fiscal 2021.
- Baidu’s smart cloud generated an annualized revenue of 13 billion yuan in 2020, up 67% year-on-year in the fourth quarter.
- The total revenue of Jinshan Cloud in the first quarter of 2021 was 1.81 billion yuan.
- Bytedance will also enter the cloud computing market in 2021.
It seems that all the big Internet companies are doing the “cloud”, and the “cloud” has containerized services in it, and containerization is definitely not without Docker.
I can’t understand Docker anymore.
Recently, WHEN I was learning GoLang and Rust, I found that it was quite annoying to configure the development environment in China. Instead, I would like to use Docker to automate the configuration process of the development environment.
Just do it!
Oh My Docker!
It’s not fun to learn concepts directly. I wish I could learn Docker quickly with my hands, so I created frankfang/ Oh-my-Docker project, which is very simple and pre-configured with my usual JS, Python, Ruby, GoLang, Rust, Zsh environment.
Create a Dockerfile in the VSCode directory and say FROM Frankfang128 /oh-my-docker:latest and Reopen in Container. For details, check out readme.md or one of my instructional videos.
How to implement oH-my-Docker
FROM/ARG/ENV/RUN/ADD and so on. If you have a little Linux background, you can also implement your own Oh-my-docker. The source code looks like this:
The FROM alpine: 3.14.1... Cmake bash git vim # Python 3 and PIP # Rustup # Rustup # Rustup # Rustup # Rustup # Rustup # Rustup # Rustup Dev env for JS install Node. JS and yarn and configure taobaosource # Java install Java 8Copy the code
README also provides tutorials if you need to connect to a database.
New ways of learning
This is a new way I’ve tried to learn: by writing documents/tutorials to help new people. I learned this trick from T.J.
Try oh-my-Docker or something like that.