I have posted all the changed configuration file content on the post (the top)ĭocker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESħ45fa3e5bdc2 andrewwang1tw/micro-caddy:1.0.0 "caddy run -config …" 33 minutes ago Up 33 minutes 80/tcp, 443/tcp, 2019/tcp, 443/udp myapp_caddy.1.is9iz7ounxd40ya08c9i5圓a2ĭocker container inspect PS C:\Users\andrewwang1\source\repos\udemy-microservice-golang\front-end> docker container inspect 745fa3e5bdc25ef40bb4c289170849debfa27194298524d6b994b7bfde3c13dd The forum does not let me upload the changed configuration files they are pretty simple. Here are the “docker container ls” and docker container inspect PS C:\ProgramData\chocolatey\lib\curl\tools\curl-8.6.0_1-win64-mingw\bin> * Failed to connect to localhost port 7878 after 2244 ms: Couldn't connect to serverĬurl: (7) Failed to connect to localhost port 7878 after 2244 ms: Couldn't connect to server * connect to ::1 port 7878 from :: port 4056 failed: Connection refused The result is refused to Connect if use custom port 7878.PS C:\ProgramData\chocolatey\lib\curl\tools\curl-8.6.0_1-win64-mingw\bin>. The result, is received HTTP 404 on port 80, it seems hot to the “Server: Microsoft-HTTPAPI/2.0”.= Docker swarm file, swarm.yml = version: '3' ĭocker push andrewwang1tw/micro-caddy:1.0.2 = docker build and push = docker build -f caddy.dockerfile -t andrewwang1tw/micro-caddy:1.0.2. =- Docker file, Caddy.dockerfile = FROM caddy:2.7.6-alpine = Caddy config file, Caddyfile = localhost Below are the Caddyfile, Caddy.dockerfile and the swarm.yml.The env is Docker v4.28.0 on Windows 11 and caddy:2.7.6-alpine. Both the swarm and the Caddy setting is basic and simple. Caddy on Docker swarm received HTTP 404 on port 80 or refuse to Connect if custom port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |