1. 构建镜像
Dockerfile + 构建镜像
1 | FROM centos:7 |
1 | docker build -t proxysqldebug:v1 . |
2. 运行容器
1 | docker run -d -p 2222:22 --security-opt seccomp:unconfined -v $PWD:/home/luzhangting001/proxysql --name proxysqldev proxysqldebug:v1 |

3. 启动debug
配置launch.json
1 | "configurations": [ |
启动报错:因为之前弄过,ssh报错了

将known_hosts里面的相关信息删除, 其实我不知道是不是必须这么做,可能不是必须的

将本机的公钥上传
1 | ssh-copy-id -p 2222 root@localhost |
vscode里面启动
