timerring

The Tips About Dockerfile

January 18, 2025 · 3 min read · Page View:
Tutorial
Docker

Normally, we often write a Dockerfile in the current directory.

  • The Dockerfile is a configuration file that describes how to build the image. You can refer to the official documentation for more details.
  • If you list more than one CMD, only the last one takes effect. So if you have multiple commands to run, you better write them in a script file.
  • Docker is not the VMware, there is no systemd in the container. Its startup program is the container application process. The container exists for the main process. Once the main process exits, the container loses its meaning of existence and thus exits. So when you execute multiple commands and if they are blocking, you better write the previous commands in nohup and the last command in the blocking command. (never use the command such as CMD service nginx start, the CMD only will execute as CMD [ "sh", "-c", "service nginx start"], when the sh is executed, the container will exit, the correct way is run it directly CMD ["nginx", "-g", "daemon off;"])
...


Docker 101

January 16, 2025 · 8 min read · Page View:
Tutorial
Docker | Systemd

Docker is a practical tool for everyday use, and like Git, you can learn it in just 30 minutes.

...


The Overview of Security

January 8, 2025 · 3 min read · Page View:
Tutorial
Security | hash | encryption | signature

In today’s digital age, security is paramount. As we increasingly rely on technology for communication, commerce, and data storage, understanding the fundamentals of security becomes essential. This article provides an overview of key security concepts, including encryption, digest algorithms, and digital signatures. By exploring these topics, we aim to equip you with the knowledge to protect your digital assets and ensure the integrity and confidentiality of your information. Whether you’re a tech enthusiast or a professional in the field, this guide will offer valuable insights into the mechanisms that safeguard our digital world.

...


Introduction to the HTTP and HTTPS Protocol

January 4, 2025 · 10 min read · Page View:
Tutorial
Network | Https

HTTP protocol is the foundation of the Internet, and HTTPS is the secure version of HTTP. HTTP is an application layer protocol based on TCP/IP protocol. It does not involve packet (packet) transmission, mainly specifying the communication format between the client and the server, and the default port is 80.

...


Mail Service and Protocol

January 4, 2025 · 2 min read · Page View:
Tutorial
Network | Mail

Recently, I have been working on DNS of my domain name. And then I need to set up the mail service of my domain name. When I tried many times, I always failed to receive the mail on my phone. Suddenly, I remembered that I didn’t set up IMAP service. So let’s review the mail service and protocol.

...


A Brief Introduction to DNS

December 26, 2024 · 11 min read · Page View:
Tutorial
Network | DNS

In my mind, DNS is the key of the internet. I always believe if you control the DNS, you control the Internet world. So let us get started to know the DNS.

...


Real Computer Network

December 23, 2024 · 16 min read · Page View:
Tutorial
Network | DNS | Socks5 | IP

For the computer network, I believe that most people have learned it in the course of university or college. No matter whether you are familiar with it or not, this article will give you a different perspective of the network. It can really help you a lot.

...