Closed joacimjakobsen closed 5 years ago
Hi @joacimjakobsen,
looks like docker python api cannot properly contact docker daemon to execute stat
command inside the container.
To further investigate this problem could you post here versions of docker
and pypiwin32
pypi packages that are installed on your system.
Please also verify that user account you use to execute the script has enough privileges to execute:
docker exec --privileged your-container-name-here whoami
docker exec --privileged your-container-name-here whoami
Says : root
Version:
PS C:\Dev\fdk> docker version
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:57:19 2017
OS/Arch: windows/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:19 2017
OS/Arch: linux/amd64
Experimental: true
pypiwin32 version is 220
Ok, thanks for this information. I need also the version of docker python package, i.e:
pip show docker
Then I will try to replicate this issue on my system. By the way, what Windows version are you using?
PS C:\Dev\fdk\applications\registration> pip show docker
Name: docker
Version: 2.5.1
Summary: A Python library for the Docker Engine API.
Home-page: https://github.com/docker/docker-py
Author: Joffrey F
Author-email: joffrey@docker.com
License: Apache License 2.0
Location: c:\python\lib\site-packages
Requires: six, websocket-client, requests, docker-pycreds
Windows version : 10.0.15063 Build 15063
Dear @joacimjakobsen , Sorry for such huge delay with the response. Finally, I got some time to look into this. I have setup exactly the same versions of pypiwin32 and docker-py you are using, however I wasn't able to donwgrade my docker installation to 17.06.2-ce (I'm currently on 17.09.0-ce). However, I wasn't able to reproduce this issue.
So, at this point the best option I can suggest is upgrading docker to 17.09.0-ce and checking whether this fixes issue.
Closing this issue, since there was awhile since the last activity. Please feel free to comment, if you have the described problem.
Hi, whenever your script finds a change it gives me error. Do you have any suggestions?
printout:
Thanks