网络模式
docker的默认网络模式的bridge,有个问题,docker内部无法直接与另外的docker内的端口进行通信,改为host模式即可。如果不改网络模式的话,要么不走http,改为走uds通信就可以。
1 2 3
| services: nginx: network_mode: "host"
|
镜像推送
1 2 3 4
| docker build . -t REPOSITORY:TAG docker tag IMAGEID(镜像id) REPOSITORY:TAG(仓库:标签) docker login docker push nephen2023/chatgpt-next-web
|