Docker for Windows

Source: Internet
Author: User
Tags virtual environment docker hub docker run

Install Package: Click here

Docker for Windows

Get started with Docker for Windows

Environment Setting Value:

    • Shared Drivers: You can share drives in a host (that is, a Windows machine) in a Docker container
    • Advanced: For configuring the CPU and memory of a virtual environment running Docker daemon
    • Network: Configuring Docker's Networking environment
    • Proxies: Configuration of the agent
    • Docker Daemon: Configuring Docker Daemon with JSON-formatted settings, similar to configuring Docker with Conf files in a Linux environment

The installation of Docker for Windows creates a Linux virtual machine for running Docker daemon in Hyper-V , and many of the configurations in this dialog box are configured for that virtual machine. When the configuration changes, Docker for Windows restarts (small cubes on the back of the little whale will move again), which is the process of dynamically adjusting and restarting the configuration of this Linux virtual machine.

After the Docker for Windows starts successfully, you can execute the Docker command at the Windows command prompt, or you can execute the Docker command in the power shell to see a person's preference. The Docker CLI experience is the same as Linux .

Using Docker for Windows to run ASP. NET Core Web API applications in containers

1. First make sure that the Dockerfile file is in the same directory as the file for the published DOCKERWEBAPI application:

2. Start the power shell and execute the Docker build in the program directory. -T TagName

There is a security warning here compared to compiling Docker image under Linux. This is because we are compiling the build of the image using the Docker service deployed in non-Windows under Windows, and the file permission settings in the two set of systems are different . Docker for Windows recommends checking the file's permissions on the compiled generated image to ensure security.

3.docker Run command

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "Hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from this image which runs the executable that produces the output is CU rrently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

Type exit to stop the container and close the PowerShell.

4. Browser input URL, test Webapi interface

Configuration

Shared Drives

Share your local drives (volumes) with Docker for Windows, so that they is available to your containers.

You'll be asked to provide your Windows system username and password (domain user) to apply shared drives. You can select a and have a Docker store the credentials so, you don't have to re-enter them every time.

Docker for Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.