Not able to create docker robot framework image

+2 votes
I need your help in creating docker images for Robot Framework.

I am trying to build the robot Framework docker images on my local windows system and ending up with below error.
I am referring link: https://blog.codecentric.de/en/2019/02/running-robot-framework-in-your-own-docker-container/

I was able to achive it on Linux box but on windows 10 getting below error.

Any help on it.

Docker File Content:
=====================
FROM python
RUN python -m pip install robot framework

====== Error: ======

PS C:\> docker build .\docker-image
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM python
— -> e604c95fcbe4
Step 2/2 : RUN python -m pip install robotframework
— -> Running in 9d450c40e9c9
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 0x00000232CB9B7520>: 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 0x00000232CB9B76D0>: 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 0x00000232CB996250>: 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 0x00000232CB996790>: 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 0x00000232CB996340>: 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:\>
PS C:\>
PS C:\> docker — version
Docker version 19.03.5, build 633a0ea

PS C:\> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
python latest e604c95fcbe4 10 days ago 11.3GB
PS C:\>

==============As an alternative, i tried to access the e604c95fcbe4 (image) and try to run the pip install framework command, still getting same error.
I am not able to ping 8.8.8.8 Google DNS ip from container. Hope i need to modify some setting. Pls any help on it.

PS C:\> docker run -ti e604c95fcbe4 cmd

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\>pip list
Package    Version
---------- -------
pip        19.3.1
setuptools 41.6.0
wheel      0.33.6

C:\>python --version
Python 3.8.0

C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is 5223-C4D0

 Directory of C:\

11/23/2016  04:15 AM             1,894 License.txt
11/08/2019  06:44 PM    <DIR>          PerfLogs
11/08/2019  06:55 PM    <DIR>          Program Files
07/16/2016  06:48 PM    <DIR>          Program Files (x86)
11/13/2019  08:15 PM    <DIR>          Python
11/08/2019  06:56 PM    <DIR>          Users
11/13/2019  08:15 PM    <DIR>          Windows
               1 File(s)          1,894 bytes
               6 Dir(s)  21,195,419,648 bytes free

C:\>
C:\>pip install robotframework
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 0x000001D739731BB0>: 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 0x000001D739731A30>: 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 0x000001D739731310>: 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 0x000001D739731790>: 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 0x000001D739731610>: 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

PS C:\> docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES
c68ba170b72f        e604c95fcbe4        "cmd"               About a minute ago   Up 26 seconds                           youthful_spence

PS C:\> docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
iqswhn1qu7x6        ingress             overlay             swarm
b4ef0fd2ac36        nat                 nat                 local
c6fae43c2571        none                null                local
PS C:\> docker network inspect b4ef0fd2ac36
[
    {
        "Name": "nat",
        "Id": "b4ef0fd2ac3632deea11b662317887d5c05cd5070f2905770c73073620aad48a",
        "Created": "2019-11-26T19:35:06.5397438+05:30",
        "Scope": "local",
        "Driver": "nat",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "windows",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.27.80.0/20",
                    "Gateway": "172.27.80.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "c68ba170b72f75a4078bfc0866062b18dda91295d9a74b39efaa29587a23d527": {
                "Name": "youthful_spence",
                "EndpointID": "f011fd701cd4af083ea72d6fe9895801eff7a93ab15c6da7039a9133b90634d7",
                "MacAddress": "00:15:5d:cd:91:76",
                "IPv4Address": "172.27.83.235/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.windowsshim.hnsid": "3ec52ea5-4dd7-4218-9353-66294101f221",
            "com.docker.network.windowsshim.networkname": "nat"
        },
        "Labels": {}
    }
]
--------- hosts file entry --------------

C:\Windows\System32\drivers\etc>more hosts

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#       127.0.0.1       localhost
#       ::1             localhost

Thanks
Sanjeev Kumar N
Nov 29, 2019 in Docker by Sanjeev
• 140 points
2,158 views

Hey @Sanjeev, try to install RIDE without an explicit version, as indicated in PyPi.

Hope this helps!

1 answer to this question.

0 votes
Did your try FROM Python3
answered Aug 21, 2020 by anonymous
Hi,

Can you share your script or steps? It will be helpful.

Related Questions In Docker

0 votes
1 answer

Docker image of maven returns this error - could not create local repository

Instead of mounting the root/.m2 folder to ...READ MORE

answered Aug 10, 2018 in Docker by Sophie may
• 10,620 points
5,486 views
+2 votes
1 answer

Nodes not able to join docker swarm cluster

You need to provide more information like ...READ MORE

answered Sep 26, 2018 in Docker by Kalgi
• 52,350 points
1,863 views
0 votes
1 answer
0 votes
0 answers

Not able to run my docker conatiner in local host

FROM ubuntu MAINTAINER Luke Crooks "luke@pumalo.org" RUN apt-get update RUN ...READ MORE

Feb 21, 2020 in Docker by Haseeb
• 120 points
681 views
0 votes
1 answer

How to create our own docker image?

Hi@akhtar, There are two ways to create docker ...READ MORE

answered Mar 11, 2020 in Docker by MD
• 95,460 points
965 views
0 votes
1 answer

How to create customize jenkins image in docker?

Hi@akhtar, You can pull Jenkins image from docker ...READ MORE

answered May 18, 2020 in Docker by MD
• 95,460 points
1,546 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
2,687 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP