Manage Docker Toolbox with PowerShell

Source: Internet
Author: User
Tags docker ps docker toolbox
  • Open PowerShell and enter:

Docker-machine ls

  • We can see the status of our current Docker virtual machine. If there is nothing, then we can create a Docker virtual machine with the following command.

Docker-machine Create--driver=virtualbox Default (skip this step if shown below)

  • After creation, we are using docker-machine LS to confirm that our Docker virtual machine is running.
  • Then use the following command to get the environment variables for the virtual machine:

Docker-machine env Default

  • And then enter:

Docker-machine env Default | Invoke-expression

  • This allows us to connect the current PowerShell with the Docker Linux in the virtual machine and then use the Docker command in PowerShell.
  • For example, we want to see which mirrors are currently available:

Docker images

  • What containers are currently available:

Docker Ps–a

Original from 68947265

Manage Docker Toolbox with PowerShell

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.