Skip to content
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

'fatal: unable to connect to github.com' message when build the Dockerfile #7

Open
molnaredom opened this issue Oct 25, 2022 · 0 comments

Comments

@molnaredom
Copy link

Console log

root@zumabox:~/docker-netsniff# docker build -t trafgen-docker .
Sending build context to Docker daemon  4.608kB
Step 1/16 : FROM alpine:3.15 as builder
 ---> 02e0d6fdf486
Step 2/16 : WORKDIR /workspace
 ---> Using cache
 ---> a9ce4a58511c
Step 3/16 : RUN apk add --no-cache --update         linux-headers         alpine-sdk         coreutils         bash         git         flex         bison
 ---> Using cache
 ---> bc3faec85fc2
Step 4/16 : RUN git clone git://github.com/netsniff-ng/netsniff-ng.git
 ---> Running in edcf59b0656a
Cloning into 'netsniff-ng'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out

The command '/bin/sh -c git clone git://github.com/netsniff-ng/netsniff-ng.git' returned a non-zero code: 128

Solution

https://stackoverflow.com/questions/16298986/unable-to-connect-to-github-com-for-cloning

  • Change the Dockerfile:
    • Replace the RUN git clone git://github.com/netsniff-ng/netsniff-ng.git with RUN git clone http://github.com/netsniff-ng/netsniff-ng.git if you face with the same problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant