pip install error inside Docker container: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

Trying to install some Python packages with pip inside a Docker container I ran into this issue: # pip3 install pytest Collecting pytest Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(‘<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7feb52c30630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’,)’: /simple/pytest/ At first I thought …

Issues running gpt-2 with provided Docker image

After following the instructions to build the gpt-2 Docker image here, I started up a bash shell into the container: docker runĀ  -it gpt-2 bash And then ran: python3 src/generate_unconditional_samples.py | tee /tmp/samples This failed with this error: AttributeError: module ‘tensorflow’ has no attribute ‘sort’ A post here says to upgrade to Tensorflow 1.14.0 in …

Summary: What you need to deploy a Docker container to AWS ECS Fargate

In my previous post I walked through a couple of tutorials to deploy a test Docker container to AWS ECS Fargate. As a summary, here’s the various parts that you need to have in place to deploy a Docker container using Fargate: A Docker image, deployed to a Docker repository, e.g. either Docker Hub, or …