dockerfile best practices and examples

Dockerfile best practices are already available in official documentation at Best practices for writing Dockerfiles .If you write another best practice, it's a little bit of a knife in front of the public door.This article is therefore a translation, understanding, expansion and example supplement to the official document Containers should be t ...

Posted on Sat, 14 Dec 2019 00:18:59 -0800 by methomps

Introduction to Docker's network

Docker network foundation When Docker is started, it will automatically create a docker0 virtual bridge on the host, which is actually a bridge of Linux, which can be understood as a software switch. It will be attached to its network interface for forwarding. When creating a Docker container, it will also create a pair of vet pair interfaces ...

Posted on Fri, 13 Dec 2019 07:19:49 -0800 by gamblor01

k8s-pig-Build Enterprise Mirror Private Service Harbor

Last tutorial taught you to write a Dockerfile and upload a DockerHub Empty your cup to fill it up again, empty to fill it up.------ Bruce Lee This introduction [ ] P2 Build a production-level Linux system [ ] P3 Half an hour learning Docker [ ] P4 Teach you to write Dockerfile and upload DockerHub [ ] P5 docker-compose deployment SpringClo ...

Posted on Thu, 12 Dec 2019 18:06:34 -0800 by ianitm

Operation of intermediate docker nginx jumps to the local jar and configures https (extra part) (80)

Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you! Original link address: Operation of intermediate docker nginx jumps to the local jar and configures https (extra part) (80) Real environment, a 1-core 2g memory, installed mysql container, java container, nginx c ...

Posted on Wed, 11 Dec 2019 13:18:41 -0800 by geroido

Xi. Spring boot configures log4j2 and packs it into a zip file

Preface In fact, we have configured the log before, but recently we always feel that the format of log is not comfortable, and each package is a jar file, and lib is included in the jar. Every time we make a small change, we need to replace the jar file again. The jar file will be larger and the transmission will be slower. So make some improve ...

Posted on Wed, 11 Dec 2019 02:56:01 -0800 by xAtlas

Getting started with docker 1: using docker image

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/qq_26654727/article/details/78360027 Ongoing update . 1. Install docker Direct execution of centos7 kernel version over 3.10.0-693.el7.x86 ʄ: yu ...

Posted on Tue, 10 Dec 2019 16:50:34 -0800 by topflight

docker swarm management service

The concept of services in docker swarm is: a service contains multiple nodes in swarm cluster, each node can deploy services, and each service also contains multiple related containers. docker service --help Commands: create Create a new service inspect Display detailed information on one or more services ls ...

Posted on Tue, 10 Dec 2019 15:46:12 -0800 by rallen102

Multi machine load balancing through Nginx

Requirement description The existing three CentOS servers with the same configuration and in the same network need to be reasonably load balanced so that the hardware and bandwidth resources of each server can be effectively utilized. Functional planning The three servers are referred to by A, B and C respectively. The load balancing service on ...

Posted on Tue, 10 Dec 2019 13:40:52 -0800 by Arsench

Don't run naked anymore. Is your project code safe to run out without encryption

At work, sometimes when we need to deploy our own Python code or make a private deployment, especially now deployed through docker mirroring, we don't want others to see our Python source programs. The way to encrypt the Python source code is to convert the.py file into a.so file, which makes the encryption highly reliable and cannot be cracke ...

Posted on Tue, 10 Dec 2019 06:58:36 -0800 by timbr8ks

docker image disk migration

Question: In the process of using docker, we often encounter the problem that the docker container exits automatically because the disk is full Solution transfer 1. Use df-h to find the largest free disk pair of the current system [root@Zhpb007 /]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 30G ...

Posted on Mon, 09 Dec 2019 23:07:31 -0800 by lokesh_kumar_s