Windows Server 2016에서 Docker 사용하기


<Docker Enterprise Edition 설치하고 운영하기>
Get-Service -Name Docker
Get-Module -List
Install-Module -Name DockerProvider -Force
Install-Package -Name Docker -ProviderName DockerProvider -Force
(##Windows 10에서는 여기서 박힌다. Get-WindowsFeature 명령어가 없어서)
Restart-Computer
Get-Service -Name Docker
Start-Service -Name Docker
docker version  (##enterprise edition임을 알 수 있다)

docker search microsoft
docker pull compulim/nanoserver-node
docker pull microsoft/iis:windowsservercore
docker images

docker run -d -p 80:80 microsoft/iis:windowsservercore cmd
** docker host에서 Web Browser로 접속한다. 그러면 Home Page에 접속이 된다
docker exec -it 컨테이너ID powershell
hostname
ping 8.8.8.8
exit

docker run -d -p 8080:80 –name myweb8080 microsoft/iis:windowsservercore cmd
docker exec -it myweb8080 cmd

docker run -it microsoft/windowsservercore powershell
docker run -it –isolation=hyperv microsoft/nanoserver cmd
hostname
powershell
get-service
(get-service).count
exit

docker ps
docker stop container_id

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 )

Google photo

You are commenting using your Google 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