dockerfile deployment and optimization

introduction The following mainly introduces how to create and use custom images, so that you can flexibly build containers, and how to optimize the size of images. 1, Dockerfile layering principle 1. Preliminary understanding of mirroring Layer ⑥: container layer - readable and writable - running image image - CMD and entrypoint are re ...

Added by sqlnoob on Sun, 05 Dec 2021 11:16:22 +0200

The underlying implementation of Vector container

Vector Vector is also one of the six components of STL. In short, it is a sequential container that encapsulates dynamic size arrays. At the same time, it can store various objects, such as int, char, string types and so on Because it is essentially a sequential container, it is stored in a sequential manner, similar to an array, and it ca ...

Added by salomo on Sun, 05 Dec 2021 05:55:28 +0200

docker container network

docker container network Docker automatically provides three networks after installation and can be viewed using the docker network ls command [root@localhost ~]# docker network ls NETWORK ID NAME DRIVER SCOPE 9692fae45042 bridge bridge local cd5368439dc0 host host local c49a1db81682 none null local ...

Added by severndigital on Sat, 04 Dec 2021 04:02:03 +0200

docker private warehouse Harbor

preface Harbor is an open source enterprise Docker Registry project of VMware 1.Harbor's advantages 1. Role based control: there are administrators and ordinary users. Ordinary users can be empowered. For example, they can only upload and download, and can be operated and managed according to the project 2. Image based replication policy ...

Added by bigdspbandj on Sat, 04 Dec 2021 00:34:56 +0200

docker container network management

1. Virtualized Networks Network Namespace is a function provided by the Linux kernel and an important function for network virtualization. It can create multiple isolated network spaces, which have their own network stack information. Whether it's a virtual machine or a container, it runs as if it's all in a separate network. And the resou ...

Added by csplrj on Fri, 03 Dec 2021 19:43:38 +0200

Kubebuild and code generator

overview kubebuilder and k8s.io/code-generator Similarly, it is a code generation tool used to generate code for your CRD kubernetes-style API realization. At present, Kubebuilder generates CRD and manifest yaml, and then code generator generates informers, listers and clientsets. Note that the methods described in this article can no long ...

Added by asgerhallas on Fri, 03 Dec 2021 01:04:17 +0200

Doker Mirror Management Foundation

Doker Mirror Management Foundation The concept of mirroring Mirroring can be understood as an application container, while docker is used to load and unload containers. The docker image contains the file system and its contents needed to start the container, so it is used to create and start the container. The docker image uses a hierarchic ...

Added by Disgrntld on Thu, 02 Dec 2021 19:28:36 +0200

docker single host network type

As a small note reference!!! This article mainly writes the docker single host network type   none host   container   bridge The first three are simple. Finally, I will talk about the bridge network in detail When docker is installed, three different networks will be created by default: [^_^] kfk ~# docker network ls NE ...

Added by ollie007 on Thu, 02 Dec 2021 00:29:39 +0200

kubernetes(k8s) note authentication, authorization and admission control authentication ServiceAccount

summary:1. kubernetes API access controlOfficial documents:https://kubernetes.io/zh/docs...kubernetes api is divided into authentication, authorization and admission controlUsers access the API through kubectl, client libraries, or by sending REST requests. Both users (natural persons) and Kubernetes service accounts can be authorized to access ...

Added by swordske on Wed, 01 Dec 2021 21:32:21 +0200

STL common algorithms

summary: The algorithm is mainly composed of header files < algorithm < functional > < numeric >, which are non member functions< algorithm > is the largest of all STL header files, covering comparison, exchange, search, traversal, copy, modification, etc< numeric > is very small and only includes a few template ...

Added by screamer141 on Tue, 30 Nov 2021 14:53:09 +0200