Finished time: 2022-03-02 02:13:25

Docker series: github.com/LiangJunron…

sequence

Good morning, afternoon, afternoon, evening and late night. My name is Jsliang, a lifelong learning programmer who is full of exploration, likes to do things, and is willing to expand his knowledge.

This series of articles will take a fresh look at how to get started, from installing Docker to deploying Nginx, Node.js, and Puppeteer services into Docker.

Of course, I wrote this article because of a work scenario:

  • You need to deploy a Node.js + TypeScript + Puppeteer service to Docker to avoid conflicts with the Hosts of the workspace development environment

Therefore, its use scenario is relatively limited, just to open a service on the LAN!

If you want to create a fully automated series: write your Git repository code locally, then push it to GitHub, go to CI/CD and update it to the server…

Welcome to urge more, if there are many people or I have time to further update, otherwise I may be a little delay more ~

Back to the topic, the main contents of this series:

  • 01 – Download & Install
  • 02 – Getting Started & Nginx services
  • 03 – Solution & Docker concept
  • 04 – Getting started & Node Services
  • 05 – Solution & Docker instructions
  • 06 – Getting Started & Puppeteer Services

The full Docker series can be found on GitHub, and wechat users can click on the end of the article to view: github.com/LiangJunron…

Of course, in addition, Jsliang will organize this series of content into a video, convenient friends to watch and learn, interested in the GitHub home page to find more jsliang ~

  • Github – LiangJunrong/document-library/

Download & Install

Open the address to download:

  • www.docker.com/products/do…

The installation process is as follows:

Second, view the version

Check the version after installation: Docker version

Error during connect: This error may indicate that the docker daemon is not running.

Fix error during Connect

Docker Desktop stopping… Docker Desktop stopping…

Solution to the above error:

  • Stackoverflow.com/questions/4…

The solution I used was Manuel Larrota’s, Ctrl + F search for this person

Note: Fixing the problem is likely to require a reboot, so do it when you need to, and don’t always assume that the solution they offer is okay

WSL 2 installation is iscomplate

When starting Docker, popup window:

Missing a piece, find the same puzzle:

  • Superuser.com/questions/1…

Using WSL 2 Based engine

  • Docs.microsoft.com/en-us/windo…

Download the.msi file and install it.

Note: Fixing the problem is likely to require a reboot, so do it when you need to, and don’t always assume that the solution they offer is okay

Five, check the normal operation

  • View desktop:

  • View the Docker version:docker version

  • View the Image:docker image ls

Six, the summary

Now that we have the Docker service installed and running, we are ready to go!

Welcome to part 2:02 – Getting Started & Nginx Services


Do not toss the front end, and what is the difference between salted fish!

Thumbs up/Star if you think the article is good.

If you need to contact jsliang:

  • Github

Personal contact information stored in Github home page, welcome to toss ~

Build yourself into a lifelong learning programmer who is eager to explore, play around, and expand your knowledge.

Jsliang’s document library is licensed by Junrong Liang under the Creative Commons Attribution – Non-commercial – Share alike 4.0 International License. Based on the github.com/LiangJunron… On the creation of works. Outside of this license agreement authorized access can be from creativecommons.org/licenses/by… Obtained.