各位大侠,帮我看看我dockerfile是不是配置的有问题
1.dockerfile内容如下
FROM centos
EXPOSE 5000
RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
RUN yum install -y dotnet-sdk-3.1
RUN yum install -y aspnetcore-runtime-3.1
RUN mkdir -p www/wwwroot/sign
WORKDIR www/wwwroot/sign
COPY ./publish /www/wwwroot/sign
ENTRYPOINT ["dotnet", "Kids.Sign.dll"]
- docker build -t kids .
- docker run -p 123:5000 kids
在Cmd中已经提示5000端口监听成功了,但是我在浏览器中输入localhost:123的时候却无法访问
咋办咋办!!!
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
docker exec -it 容器ID /bin/bash
进入容器,运行curl -i localhost:5000
看能否正常访问