备份容器内的文件 docker cp image:/root/file.txt /tmp/file.txt 替换容器内的 sources.list文件 docker cp /tmp/file.txt image:/root/file.txt