New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portainer agent on Windows Server 1803 #2463
Comments
Try this on a standalone Windows 1803 Docker Host
docker run -d -p 9001:9001 --name portainer_agent --restart=always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine portainer/agent
Or this if is a Windows 1803 Docker Host as a SINGLE NODE swarm.
docker run -d -p 9001:9001 --name portainer_agent --restart=always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -e AGENT_CLUSTER_ADDR=tasks.agent portainer/agent
From: uptlak <notifications@github.com>
Sent: Tuesday, 13 November 2018 8:43 PM
To: portainer/portainer <portainer@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [portainer/portainer] Portainer agent on Windows Server 1803 (#2463)
Description
Hello, I am trying to install a portainer agent on windows server worker node, but after I execute this command:
docker run -d --name portainer_agent --restart always --network portainer_agent_network -e AGENT_CLUSTER_ADDR=tasks.agent --mount type=npipe,source=\\.\pipe\docker_engine,target=\\.\pipe\docker_engine portainer/agent:windows1803-amd64
I always get this error:
docker : invalid argument "type=npipe" for "--mount" flag: target is required
* CategoryInfo : NotSpecified: (invalid argumen...get is required:String) [], RemoteException
* FullyQualifiedErrorId : NativeCommandError
Steps to reproduce the issue:
1. Install Docker EE 18.09 on Windows Server Datacenter 1803
2. Run command above
Technical details:
* Portainer version: 1.19.2
* Manager nodes Docker version: 18.03.1-ce
* Worker nodes Docker version: 18.09.0-ee
* Platform: Windows Server Datacenter 1803
* Command used to start Portainer: I deployed it as Stack via docker-compose
If you have any solution please help.
docker version
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.3
Git commit: 33a45cd0a2
Built: unknown-buildtime
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.24)
Go version: go1.10.3
Git commit: 33a45cd0a2
Built: 11/07/2018 00:24:12
OS/Arch: windows/amd64
Experimental: false
docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 18.09.0
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 17134 (17134.1.amd64fre.rs4_release.180410-1804)
Operating System: Windows Server Datacenter Version 1803 (OS Build 17134.1)
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 3.999GiB
Name: srv-dockerw1
ID: QZ4J:RGFC:HJW5:PDIT:SMK4:NLVQ:CLJ2:VUWW:7IVC:Y7Z5:JHTA:RDV2
Docker Root Dir: E:\docker
Debug Mode (client): false
Debug Mode (server): false
Username:
Registry: https://index.docker.io/v1/<https://urldefense.proofpoint.com/v2/url?u=https-3A__index.docker.io_v1_&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=E77r1gbZfaQFV2mjT4M3gY941YuwHYmupgFT_LrmTHk&s=UPJNKTYZoZon5INw5yvy9B6D2zKX31YwJkvjVH4mhPM&e=>
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_portainer_portainer_issues_2463&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=E77r1gbZfaQFV2mjT4M3gY941YuwHYmupgFT_LrmTHk&s=eVLxGR6_hCCZFmoXDLX_RtTUUbwGfnR6sb4V2r5c6GE&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWGrlWqGiIx7-5FQCDqwb-5Fd-2D3GFUFB2hctks5uungggaJpZM4YbFNy&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=E77r1gbZfaQFV2mjT4M3gY941YuwHYmupgFT_LrmTHk&s=W6LMqMrYkybS6wwH547gkuzaMeU-aFzm4gTAAtc9YpA&e=>.
|
I have 3 manager nodes on Centos 7, portainer and portainer agents running just fine. The commands you provide does not work. |
Ok, so there is currently no way to run the agent on windows in a multi-node swarm. Its a limitation of the docker named pipes.
Rgds,
Neil Cresswell
On 13/11/2018, at 9:26 PM, uptlak <notifications@github.com<mailto:notifications@github.com>> wrote:
I have 3 manager nodes on Centos 7, portainer and portainer agents running just fine.
and 5 worker nodes on Windows Server 1803.
On worker nodes are running several applications, but I am unable to install a portainer agent on them.
The commands you provide does not work.
After the first command, the container cannot even run, always restarting.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_portainer_portainer_issues_2463-23issuecomment-2D438178220&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=JotwwJbH4buHLZm0aTrLYmm4OR8Yg3sYHLf4GgV1FpU&s=PyXthIBmot4ukihU3DmZh8f6Yn8ku9lz50eNmEBdlAo&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWGrlbv-2DNP-2DTHUGUK8VDxXLI-2DrieXExWks5uuoJGgaJpZM4YbFNy&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=JotwwJbH4buHLZm0aTrLYmm4OR8Yg3sYHLf4GgV1FpU&s=gOJ5SnumWpT-hxkCOyBIdrTyqLClFTEC3FDvm_Do30E&e=>.
|
@uptlak I can see two problems in this issue:
I'd say that this is related to your environment. Can you try to bind mount a named pipe in another container image?
It can actually be deployed manually, but it's much more complicated, steps can be adapted from this tutorial: https://www.esentri.com/blog/2018/09/10/portainer-agent-deployment-on-docker-swarm-with-user-namespace-remap/ You can remove any Closing this issue for now, feel free to comment if you're missing anything. |
Description
Hello, I am trying to install a portainer agent on windows server worker node, but after I execute this command:
docker run -d --name portainer_agent --restart always --network portainer_agent_network -e AGENT_CLUSTER_ADDR=tasks.agent --mount type=npipe,source=\\.\pipe\docker_engine,target=\\.\pipe\docker_engine portainer/agent:windows1803-amd64
I always get this error:
Steps to reproduce the issue:
Technical details:
If you have any solution please help.
docker version
docker info
The text was updated successfully, but these errors were encountered: