Windows Server 2022에 Container 서비스 설치하기


참고 영상: https://youtu.be/mDlxN9w4Iho
Get-WindowsFeature -Name containers
Install-WindowFeature -Name containers

Install-Module DockerMsftProvider -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Restart-Computer
Get-Service -Name docker

docker version
docker info
docker pull mcr.microsoft.com/dotnet/samples:aspnetapp
docker images
docker run -it -d -p 8000:80 –name winContainer mcr.microsoft.com/dotnet/samples:aspnetapp
docker ps

웹브라우저를 실행하여 http://localhost:8000
docker rm winContainer -f

docker pull pihole/pihole:latest (##실패: 이것은 Linux용 Image이기 때문)

** MCR: Microsoft Container Registry

** mcr.microsoft.com는 https://github.com/microsoft/containerregistry 이다

** <MCR Content>

The discovery experience for MCR is provided through dockerhub.

To query the list of repositories within mcr: https://mcr.microsoft.com/v2/_catalog (##중요: 확인해볼 것)

To query the list of tags, within a repository: https://mcr.microsoft.com/v2/{namespace/repo}/tags/list

For example, to retrieve the list of tags for mcr/hello-world : https://mcr.microsoft.com/v2/mcr/hello-world/tags/list

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s