Docker security mechanism and resource management restrictions

Setting up the security mechanism of docker Container permissions Set the container to run at privilege level: - privileged=true sometimes we need the container to have more permissions For example, operating kernel module, controlling swap partition, mounting USB disk, modifying MAC address, etc. [root@foundation7 ...

Posted by robbyc on Thu, 02 Jan 2020 07:18:33 +0100

linux view file tree structure

tree installation: Using the tree command under linux can easily view the file tree structure under the specified directory, but some systems do not install the command, so you need to install it manually. Take the installation of Ubuntu as an example, and other linux systems are similar. To install under ubuntu: With the net ...

Posted by bedted on Tue, 31 Dec 2019 06:39:21 +0100

Installation of NVIDIA driver, CUDA and CUDNN under Linux

0. Preface Recently, I am learning how to install and use PaddlePaddle in various video card driver versions, so I am also learning how to install and uninstall CUDA and CUDNN in Ubuntu. During the learning process, I will record the learning process by the way. At the same time, we are strengthening our memory. This paper takes the unloading C ...

Posted by nicx on Sun, 29 Dec 2019 13:01:59 +0100

Install mysql under Ubuntu 16.04.1

Version information ubuntu version: 16.04.1 MySQL server version: 5.7.23 install First, check the mysql version available from apt ubuntu@VM-0-4-ubuntu:~$ apt search mysql You can see that there are two package s in the result. We can install MySQL server. You can see that the MySQL server provided is 5.7.23. mysql-client/xenial-security,xenial ...

Posted by hwmetzger on Sat, 28 Dec 2019 18:01:48 +0100

Using MPI message passing to realize the sequential output of hello world

MPI: hello world sequential output When running MPI parallel programs, we don't know which core is moving fast, so it's unknown who executes the same code first without other controls. For example, for a program that outputs "hello world", if multiple nodes are used to run, the printing order is uncertain. Here is a ...

Posted by murdocsvan on Sat, 21 Dec 2019 21:36:56 +0100

Practice of using cmake to compile ffmpeg in Android studio

This example uses the combined libffmpeg library. Please refer to the previous practice The practice of compiling ffmpeg into a single library on android platform Catalog Configuration environment New hello project Configuration environment Operating system: ubuntu 16.05 Note: the compilation of ffmpeg library uses android ...

Posted by paulytrick on Thu, 12 Dec 2019 20:43:02 +0100

[Hadoop cluster building] ssh password free login setting

[Hadoop cluster building] ssh password free login setting There are three hosts, their IP addresses and roles in the cluster are as follows: 172.17.0.2 //master 172.17.0.3 //slave1 172.17.0.4 //slave2 Now you want to make the two of them able to log in through ssh, the steps are as follows: Create public key and configure acc ...

Posted by pskZero7 on Mon, 09 Dec 2019 12:24:20 +0100

Ubuntu 18.04 install TensorFlow-GPU 1.13.1 based on NVIDIA 2080

Ubuntu 18.04 install TensorFlow-GPU 1.13.1 based on NVIDIA 2080 Official documents Note that the versions correspond one by onehttps://tensorflow.google.cn/install/source Other please refer to Ubuntu 16.04 installation of tensorflow GPU based on NVIDIA 1080Ti Installation environment System: Ubuntu 18.04.02 desktop Video card: NVIDIA GeForce ...

Posted by mckooter on Tue, 03 Dec 2019 03:53:56 +0100

A few lines of commands to understand that the remote server creates a user with no secret login

Upgrade package management system First, use the following command to upgrade the package management system: sudo apt-get update && sudo apt-get upgrade Create users and configure account permissions For the sake of server security, we should avoid using the root user to log in directly; instead, we should create a new user and use this ...

Posted by s1akr on Sun, 01 Dec 2019 10:53:25 +0100

python crawler - basic module, you must understand!

Prefacepython crawler, web spider. Crawls the website to obtain the web page data, and carries on the analysis extraction. The basic modules are urllib, urllib2, re, etc (I) basic usage, examples (1) make a basic GET request to GET the html of the web page #!coding=utf-8 import urllib import urllib2 url = 'http://www.baidu.com/' # Get request ...

Posted by mcatalf0221 on Sat, 30 Nov 2019 15:05:25 +0100