There seem to be two prerequisites for VS to support docker.
1. The concerned project should have installed the package Microsoft.VisualStudio.Azure.Containers.Tools.Targets
2. The current logged in user should be in the "docker-users" group.
If the first is not there, error "The project doesn't know how to run the profile docker" is flashed.
If the second requirement is not fulfilled, then error "The current user is not in the 'docker-users' group. Add yourself to the 'docker-users' group and then log out and back in to Windows." is flashed.
For the first one, you can directly install the package through nuget either using cli or from IDE.
For the second one, refer this.
NOTE: You need to have your user name in a special user group called "docker-users" .
If your windows is below 10, like 8.1, you need to install WMF 5.1
Then only you can run following commands in Windows Powershell with admin rights ( for this simply start your command prompt in admin mode and type powershell on command line) :
New-LocalGroup -Name 'docker-users' -Description 'docker Users Group'
Add-LocalGroupMember -Group 'Administrators' -Member ('docker-users') –Verbose
Add-LocalGroupMember -Group 'docker-users' -Member ('Username','Administrators') –Verbose
No comments:
Post a Comment