如題,這樣:docker
1. service docker stop,json
2. 修改/var/lib/docker/containers/[container-id]/config.json裏對應的環境變量it
3. 而後service docker start。變量
4. 查看效果: docker exec -it [container-id] envservice