I have installed docker for Windows 10 (Anniversary) as per MSDN
I can execute docker.exe
commands in an elevated powershell environment, but not in a regular powershell.
I have updated the docker configuration file to contain:
{
"group": "Power Users"
}
And have obviously added the user to power users, the user is also in the administrators group.
Is there any way to execute docker commands such as docker search *
without using run as administrator
Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/info: open //./pipe/docker_engine: Access is denied.). Using system default: https://index.docker.io/v1/ error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/images/search?limit=25&term=%2A: open //./pipe/docker_engine: Access is denied.
Although my user has Administrator privileges, I don't need to use an elevated PowerShell to run docker.
You can try making the connection via TCP. In Power Shell type:
$env:DOCKER_HOST="tcp://0.0.0.0:2375"
docker ps
Or
$env:DOCKER_HOST="tcp://localhost:2375"
docker ps
Since version 17.03.1-ce-win12 (12058) you must check Expose daemon on tcp://localhost:2375 without TLS if you use Docker for Windows and connecting via TCP
Regards