报下面错误
Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages使用以下命令替换 后 重新安装vim命令
# 更新apt-get源 mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb stretch main contrib non-free" >/etc/apt/sources.list && \ echo "deb-src stretch main contrib non-free" >>/etc/apt/sources.list && \ echo "deb stretch-updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb-src stretch-updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb stretch/updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb-src stretch/updates main contrib non-free" >>/etc/apt/sources.list添加以下配置
[mysqld] # 打开binlog log-bin=mysql-bin # 选择ROW(行)模式 binlog-format=ROW # 配置MySQL replaction需要定义,不要和canal的slaveId重复 server_id=1 character-set-server=utf8 [client] default-character-set=utf8 [mysql] default-character-set=utf8然后重启mysql 容器
docker restart mysql容器启动服务 配置好相应的文件就可以了
1.1.4 主要是mysql的配置多一些