- 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
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