for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Not able to create docker robot framework images on windows system

Open narayask opened this issue 7 years ago • 3 comments

Hi Team,

I am trying to create robot framework docker image, referring to the below link "https://blog.codecentric.de/en/2019/02/running-robot-framework-in-your-own-docker-container/"

I am able to achieve it on Linux box on windows system getting below error while running docker build command.

Dockerfile content: FROM python:3 RUN python3 -m pip install robotframework

PS C:\docker-image> docker build Dockerfile 3889bb8d808b: Extracting [=================================================> ] 3.998GB/4.07GB PS C:\docker-image> cd .. 3889bb8d808b: Extracting [===============================================> ] 3.87GB/4.07GB Sending build context to Docker daemon 2.048kB Step 1/2 : FROM python:3 3889bb8d808b: Extracting [===============================================> ] 3.87GB/4.07GB 3889bb8d808b: Pull complete b4f320e456fc: Pull complete e3d96c7d827b: Pull complete 9a9c3adec710: Pull complete 0ee0d60e0d49: Pull complete 0e962ba92488: Pull complete a1811e905033: Pull complete fffa53e27f18: Pull complete 16075994b0e3: Pull complete 7e1b0de96e5c: Pull complete 29988487ca49: Pull complete Digest: sha256:514a95a32b86cafafefcecc28673bb647d44c5aadf06203d39c43b9c3f61ed52 Status: Downloaded newer image for python:3 ---> 6d7e3720b767 Step 2/2 : RUN python3 -m pip install robotframework ---> Running in 6fd0fc0ae93e python3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:76

  • ... e = 'Stop'; $ProgressPreference = 'SilentlyContinue'; python3 -m pip ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (python3:String) [], ParentConta insErrorRecordException
    • FullyQualifiedErrorId : CommandNotFoundException

The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; python3 -m pip install robotframework' returned a non-zero code: 1

PS C:> docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE python 3 6d7e3720b767 3 weeks ago 11.3GB python latest 6d7e3720b767 3 weeks ago 11.3GB

Have tried with various docker file option, still no luck.

PS C:> docker build docker-image Sending build context to Docker daemon 2.048kB Step 1/2 : FROM python:3 ---> 6d7e3720b767 Step 2/2 : RUN python3 -m pip install robotframework ---> Running in 7832eafe2941 python3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:76

  • ... e = 'Stop'; $ProgressPreference = 'SilentlyContinue'; python3 -m pip ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (python3:String) [], ParentConta insErrorRecordException
    • FullyQualifiedErrorId : CommandNotFoundException

The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; python3 -m pip install robotframework' returned a non-zero code: 1

PS C:> docker build docker-image Sending build context to Docker daemon 2.048kB Step 1/2 : FROM python:3 ---> 6d7e3720b767 Step 2/2 : RUN python -m pip install robotframework ---> Running in 0f44366fdc36 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022544F07520>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022544F076D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022544EE6250>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022544EE6790>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022544EE6340>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ ERROR: Could not find a version that satisfies the requirement robotframework (from versions: none) ERROR: No matching distribution found for robotframework The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; python -m pip install robotframework' returned a non-zero code: 1 PS C:> docker build docker-image Sending build context to Docker daemon 2.048kB Step 1/2 : FROM python:3 ---> 6d7e3720b767 Step 2/2 : RUN pip install robotframework ---> Running in 34d3b71324f2 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000252ABCAA5E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000252ABC8B2B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000252ABC8B250>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000252ABC8B4F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000252ABC9E880>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/robotframework/ ERROR: Could not find a version that satisfies the requirement robotframework (from versions: none) ERROR: No matching distribution found for robotframework The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; pip install robotframework' returned a non-zero code: 1 PS C:>

Please any help on this.

Thanks Sanjeev Kumar N

narayask avatar Nov 13 '19 14:11 narayask

Can i get any help on this issue. Thanks

narayask avatar Nov 19 '19 13:11 narayask

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Feb 17 '20 01:02 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jul 11 '20 03:07 docker-robott