.NET 6 API in Docker Container | Build Docker Image | Use Docker Hub

preview_player
Показать описание
Prerequisites of this lab are to
1) install WSL2
2) Install Docker Desktop
3) Make an account on the docker hub

Commands I used:
dockerfile content:
COPY bin/debug/net6.0/publish/ App/
WORKDIR /App
ENTRYPOINT ["dotnet", "{ProjName}.dll"]

Create an image
docker build -t {repo pointing to image} -f Dockerfile .

list of images installed:
docker images

list of all containers:
docker ps -a

run a container:
docker run -it --rm -p 8000:80 --name {container-name} {image-name}
Рекомендации по теме
Комментарии
Автор

Great tutorial bro! Could you explain the same process but using an Api Laravel and then this Api will be consumed bye Angular?😢 I need your help!😞

cess-lh
Автор

Keep cam and relax while making video. Your in to much hurry while explaining

muzamilkhalil
welcome to shbcf.ru