本地安装Containerd:
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y containerd epel-release
yum install -y jq
Containerd版本:
#coding: utf-8 | |
class calculator(object): | |
def __init__(self, scale): | |
self.scale = scale | |
def split(self, value): | |
INT = [] | |
FLOAT = [] | |
_mos = False |
-- MySQL dump 10.17 Distrib 10.3.18-MariaDB, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: work | |
-- ------------------------------------------------------ | |
-- Server version 10.3.18-MariaDB-1:10.3.18+maria~bionic-log | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8mb4 */; |
version: '2' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:10.3' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- MARIADB_EXTRA_FLAGS=--local-infile=0 | |
volumes: | |
- ${PWD}/mariadb_data:/bitnami | |
phabricator: |
FROM alpine | |
RUN set -ex \ | |
&& if [ $(wget -qO- ipinfo.io/country) == CN ]; then echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories ;fi \ | |
&& apk --update add --no-cache libsodium py-pip \ | |
&& pip --no-cache-dir install https://github.com/shadowsocksr-backup/shadowsocksr/archive/manyuser.zip | |
CMD ["/usr/bin/ssserver","-s","0.0.0.0","-p","8388","-m","aes-256-cfb","-k","123qweasd","-o","tls1.2_ticket_auth","-O","auth_sha1_v4"] |
version: '2' | |
services: | |
web: | |
image: jenkins/jenkins:lts | |
ports: | |
- "5000:5000" | |
- "9091:8080" | |
user: root | |
command: bash -c "apt update && apt -y install python-pip" |
I can't comment, so I will put this as a separate answer. I found a few issues with the accepted one-liner answer: | |
The one-liner includes a passphrase in the key. | |
The one-liner uses SHA-1 which in many browsers throws warnings in console. | |
Here is a simplified version that removes the passphrase, ups the security to suppress warnings and includes a suggestion in comments to pass in -subj to remove the full question list: | |
``` | |
openssl genrsa -out server.key 2048 | |
openssl rsa -in server.key -out server.key | |
openssl req -sha256 -new -key server.key -out server.csr -subj '/CN=localhost' | |
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt |
#include <stdio.h> | |
#include <stdlib.h> | |
void ChangeValue(int *pointer_array, int mos, int new_value){ | |
*(pointer_array+mos) = new_value; | |
} | |
int main() | |
{ | |
int n = 3; |
docker build -t DockerFileName:Tags . | |
docker run --name ContainerName -itd -p 8080:80 DockerFileName:Tags | |
docker ps -a | grep Exited | cut -d ' ' -f 1 | xargs docker rm | |
docker rm $(docker ps -a -f STATUS=exited | awk '{print $1}') | |
#docker inspect --format='{{.NetworkSettings.IPAddress}}' $(docker ps -a -q) |