linux sqlserver 2019 启动代理
1.进入容器
> docker exec -it xxx bash
2.执行开启命令
> /opt/mssql/bin/mssql-conf set sqlagent.enabled true
提示 /opt/mssql/bin/mssql-conf: line 28: sudo: command not found
3.安装sudo
> apt update
> apt install sudo
提示权限不足
4.提升权限
> su - root
不知道密码,使用docker 进入时候直接使用root 进入
5.使用root 进入容器
> docker exec -u root -it xxx bash
6.执行第3步,再执行执行第2步(成功提示:SQL Server needs to be restarted in order to apply this setting)
7.重启server
> docker restart xxx