Ubuntu安装docker
更新系统包 sudo apt update 安装依赖包 sudo apt install apt-transport-https ca-certificates curl software-properties-common 添加 Docker 的 GPG 密钥 curl -fsSL https
更新系统包 sudo apt update 安装依赖包 sudo apt install apt-transport-https ca-certificates curl software-properties-common 添加 Docker 的 GPG 密钥 curl -fsSL https
检查linux的ssh配置文件/etc/ssh/sshd_config,找到如下配置是否存在并且未被注释: PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys 放开注释后重启ssh服务 sudo systemctl res
docker-compose.yml version: "3.9" services: postgres: image: postgres:11.5 container_name: postgres restart: unless-stopped environm
docker-compose.yml version: '3' services: jenkins: image: jenkins/jenkins:lts ports: - "10240:8080" - "10241:50000" volumes:
需要将其它docker部署的应用程序放在同一个网络下,这里创建了一个docker-common的网络 docker-compose.yml version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' r
docker-compose.yml version: '3' services: hbase-master: image: harisekhon/hbase:${VERSION:-latest} container_name: hbase restart: always
docker-compose.yml version: "3.9" # rotating logs so they do not overflow x-logging: logging: &default-logging driver: "local" options:
docker-compose.yml version: '3' volumes: es-conf: driver: local driver_opts: type: 'none' o: 'bind' device: '/opt/elastics
docker-compose.yml version: '3' services: redis: image: redis:latest container_name: redis ports: - "6379:6379" volumes:
一、 新建用户 方法一: 使用adduser命令,一路enter(使用ssh连接可以不设置密码) sudo adduser testuser 方法二:老版linux中可能没有adduser这个高级命令,使用useradd命令,并需要手动创建home 创建用户 sudo useradd testuse