```javascript
# 设置容器总是重启
docker update --restart=always f854fe55ed76

# 查看网络​
docker network ls
# 创建桥接网络​task-manager
docker network create --driver bridge task-manager
# 将现有的容器​8a74f2c64cdc连接到网络task-manager
docker network connect task-manager 8a74f2c64cdc
# 查看网络task-manager​
docker network inspect task-manager
# 运行容器时使用网络task-manager
docker run -d -p 8090:8090 --network task-manager  --restart unless-stopped -v ./hosts:/etc/hosts --name task-manager-server task-manager-server 
                                      
```