docker practice record

install Ubuntu 14.04/16.04 (install using apt get) Refer to Appendix 2 # step 1: install some necessary system tools sudo apt-get update sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common # step 2: install GPG certificate curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add ...

Posted by malcome_thompson on Fri, 29 Nov 2019 17:04:41 +0100

Installing tensorflow GPU under linux

Install NVIDIA drive 1. Driver download address: https://www.nvidia.cn/Download/index.aspx?lang=cn 2. Unload the original drive Ctrl+Alt+F1 sudo apt-get remove nvidia-* sudo apt-get autoremove sudo nvidia-uninstall Reset computer shutdown -r now 3. Drive installation Ctrl+Alt+F1 sudo service lightdm stop sudo sh ./filenam ...

Posted by doug007 on Sun, 17 Nov 2019 16:37:31 +0100

Modify Docker container startup configuration parameters

Sometimes, we forget to add the parameter -- restart=always when creating the container. When the Docker is restarted, the container fails to start automatically, Now what about adding this parameter? There are two methods: 1. Docker command modification docker container update --restart=always container name 2. Directly change the configurat ...

Posted by s3rg1o on Tue, 12 Nov 2019 20:51:36 +0100

FRR learning day 12 - EVPN routing

TYPE-2 It is rare to add header replication table entries. In general, the peer will send a type3 type route for vtep discovery /* * Install remote VTEP into the kernel if the remote VTEP has asked * for head-end-replication. */ static int zvni_vtep_install(zebra_vni_t *zvni, zebra_vtep_t *zvtep) { if (is_vxlan_flooding_head_end() && ...

Posted by xxreenaxx1 on Fri, 08 Nov 2019 10:15:11 +0100

WSL update default source

Today, because of a VSC + + error on Windows, I think of WSL. With administrator privileges, the WSL of this computer is installed again. Set → update → developer options → open development mode Control panel → program and update → open or close function → WSL function check Open cmd → input bash → follo ...

Posted by scanreg on Sun, 03 Nov 2019 17:20:21 +0100

30 min introduction to Go zero base

It has been more than two years since I unknowingly used Go to develop. The experience summary of the preparation point is convenient for later students to get started quickly. outline 1. Go installation 2. Go ide building 3. Go modules module management     4. Go unit test 5. ...

Posted by DragonFire-N[R] on Wed, 23 Oct 2019 23:20:36 +0200

CVE-2019-14287 (Linux sudo vulnerability) analysis

Author: lu4nx @ know Chuangyu 404 active defense laboratory Author blog: CVE-2019-14287 (Linux sudo vulnerability) analysis Original link:https://paper.seebug.org/1057/   Recently sudo was exposed a vulnerability, unauthorized privileged users can bypass the restrictions to obtain privileges. For the official repair notice, please refer to: ...

Posted by shmick25 on Tue, 22 Oct 2019 09:49:46 +0200

synproxy for connection tracing

Principle analysis Synproxy is a convenient function to mitigate syn flood attacks. linux supports synproxy with a connection tracking extension. The following article explains in detail why linux synproxy is implemented. The article links to https://lwn.net/Articles/563151/: The following patches against nf-next.git implement a SYN proxy for ...

Posted by john010117 on Fri, 11 Oct 2019 11:24:45 +0200

kubernetes version upgrade strategy

Kubbernets Version Compatibility Before upgrading, you need to understand the relationship between versions: The kubernetes version is named XYZ, where X is the primary version, Y is the secondary version, and Z is the patched version.For example, 1.16.0 The version numbers of all K8s components kube-controller, kube-scheduler and kubelet sha ...

Posted by phphead on Thu, 10 Oct 2019 11:51:56 +0200

Ops.shell-Linux shell notes: introduction

Excerpt from "Introduction to Linux shell scripts" is not finished!!! Conversion, Formatting printf "%-5s %-10s %-4.2f\n" 1 Sarath 80.3456 Color reset = 0, black = 40, red = 41, green = 42, yellow = 32, blue = 44, magenta = 45, cyan = 46, white = 47 echo -e "\e[1;31m This is red text \e[0m" Get environment variables when the process i ...

Posted by MSK7 on Wed, 09 Oct 2019 09:04:58 +0200