4. Deploy Windows Containers Flashcards
Containers
A means for rapidly deploying virtualized, isolated operating system environments for application deployment and execution through the use of a shared operating system image.
containers do not perform a boot sequence
Namespace isolation
each container only has access to the resources that are available to it.
Resource governance
a container only has access to a specified amount of processor cycles, system memory, network bandwidth, and other resources and no more.
Windows Server containers
and hyper-v containers
Windows containers share the kernel with the host for trustworthy applications.
hyper-v containers are more isolated and have their own container. for untrustworthy applications.
Building a Hyper-v Container
- Expose Virtualization
- build a vm
- turn on mac address spoofing
- docker run -it –isolation=hyper-v microsoft/windowsservercore ping -t localhost
Dockerd.exe
the docker engine or the daemon that runs in the background
docker.exe
The docker client, the command shell you use to create and manage containers.
DockerFiles
script files that contain instructions for the creation of container images.
Docker-Hub
the docker registry that is filled with images for importing and building containers.
docker cloud
a cloud service you can use to deploy you containerized applications.
Installing docker on windows server
Install-module -name dockermsftprovider -repository psgallery -force
install-package -name docker -providername dockermsftprovider
restart-computer -f
Configuration file
the docker engine is a palin text configuration file in the form of a .json and can be used to configure things like startup options.
Install a base operating system
docker.exe - Docker pull
Powershell - request-containerimage -repository microsoft/windowsservercore
Tag an image
Tagging a container is a version control mechanism it allows you to differentiate between image versions.
docker client - docker tag imagename:tag
PowerShell - add-containerimagetag -imageidorname _______ -repositroy ____ -tag #.#
failing to add a tag number will tag the image with the word latest, this does not mean it will actually be the latest image though if you are not managing your images properly.
Uninstall a docker operating system image
docker.exe - docker rmi
PowerShell - remove-containerimage