搬瓦工Docker笔记

Docker安装官方文档:

https://docs.docker.com/install/

CentOS 7安装流程:

sudo yum install -y yum-utils   device-mapper-persistent-data   lvm2
sudo yum-config-manager     --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
sudo systemctl start docker
systemctl enable docker
docker run -d -p 5800:5800/tcp -p 5800:5800/udp jpacg/shadowsocksr -s 0.0.0.0 -p 5800 -k 密码 -m aes-256-cfb
docker images -a -q
docker ps -a -q

安装SS服务:

docker run -d -p 5800:5800/tcp -p 5800:5800/udp jpacg/shadowsocksr -s 0.0.0.0 -p 5800 -k 密码 -m aes-256-cfb

安装PHPStorm的注册服务器:

docker run --name some-idea -p 1017:1017 -e USER="$USER" -d dominate/idea-license-server

如:

docker run --name phpstorm -p 1017:1017 -e USER="ljzxzxl" -d dominate/idea-license-server

所有容器开机自启:

docker update --restart=always $(docker ps -a -q)

Mac下SS客户端下载地址:

https://github.com/yangfeicheung/Shadowsocks-X/releases/

标签: 无

发表评论: