Pycharm连接Docker
发表于:2024-07-12 |

Pycharm连接Docker

手动

  • 路径/etc/docker/daemon.json

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    {
    "registry-mirrors": [
    "https://idsc5w8g.mirror.aliyuncs.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://registry.docker-cn.com",
    "https://hub-mirror.c.163.com",
    "https://mirror.ccs.tencentyun.com",
    "https://reg-mirror.qiniu.com"
    ]
    }
    • 重启docker

      1
      2
      systemctl daemon-reload
      systemctl restart docker

指令

1
sudo mkdir -p /etc/docker
1
2
3
4
5
6
7
8
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://t57hdrx1.mirror.aliyuncs.com",
"http://f1361db2.m.daocloud.io"
]
}
EOF
1
2
systemctl daemon-reload
systemctl restart docker

修改TAG版本

1
2
docker tag bengenseo/os7py9:<none> bengenseo/os7py9:1.0
docker tag boiler:1.0 boiler:latest

更新

1
yum update

配置SSH

  • 路径/etc/ssh/sshd_config

    1
    2
    #开启账号密码登陆
    PermitRootLogin yes
  • 命令,修改密码

    1
    passwd root

    密码root

  • 重启SSH

    1
    service sshd start
  • 本地windows电脑测试

    • cmd.exe
    1
    ssh [email protected]

    image-20230622111334025

上一篇:
pycharm快捷键
下一篇:
HEXO自动化部署到Github博客