Docker Windows授予构build代理用户的权限
我想configuration一个GoCD代理来使用docker来构build我的项目。 原来我的GoAgents是作为SYSTEM运行的,因为这是Windows上的默认安装,但是我发现在编译期间(由于$ env:TEMP没有被定义或者被定义在一个奇怪的地方而导致奇怪的失败)。
我将我的代理人切换到本地帐户,并授予该帐户权限以作为服务运行。 这工作得很好,直到我试图build立docker图像。 我有一个脚本,作为我的用户完美工作,但作为GoCD代理运行时失败。
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.32/build?buildargs=%7B%22EngineDir%22%3A%22C%3A%5C%5CInfinity%22%2C%22ImageVersion%22%3A%222.0.0%22%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=29985a28e57e1f1b4fa8950cfa0f747b4c2680fa5f4fcb3643f68b4595825651&shmsize=0&t=invoke-infinity%3Alatest&t=invoke-infinity%3A2.0.0&target=&ulimits=null: open //./pipe/docker_engine: Access is denied. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
我已经尝试将用户添加到docker-users组,但似乎没有帮助。 我试着按照这篇文章http://dille.name/blog/2017/11/29/using-the-docker-named-pipe-as-a-non-admin-for-windowscontainers/但是得到和错误说Docker Windows不支持“主机”。
有没有人有任何方式在Windows上的非pipe理员用户运行docker构build?
谢谢
- 如何在docker remote api中创build容器? (去-dockerclient)
- 来自Docker的Golang编译caching
- 使用golang docker API模拟docker run
- 无法从golang连接到docker postgres容器
- / bin / sh:1:gvm:找不到
- golang – 使用io.Copy从bufio.Reader复制到STDOUT的怪异字符
- 将docker-compose.yml转换成DockerAPI / services / create接受的json?
- 使用Elastic Beanstalk在AWS上转到Web应用程序,不会在日志中显示输出
- Docker nginx和Go(Golang)分开容器。 Nginxconfiguration