Ubuntu 14.04 – wget is hanging

I am trying to run install maven in my Docker image using this command:

RUN wget --no-proxy --no-verbose -O /tmp/apache-maven-3.2.2.tar.gz http://archive.apache.org/dist/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.gz

But it just hangs in the command line terminal. No output, nothing after that. I don’t even get prompted to enter another command in the shell until I hit ctrl + C.

  • WSO2 : how to download products in a Dockerfile?
  • Restart ghost blog running inside Docker
  • Docker Swarm - balance resources (CPU, RAM) within scaled concurrent apps/services
  • Docker Compose volume doesn't persist files in subfolders
  • Docker can't mount folder on windows
  • SparqlVerse issue with Docker
  • EDIT 1: I tried running the command with --no-proxy and this was the result once again:

    root@2ff7e62d1e7c:/# wget --no-verbose -O /tmp/apache-maven-3.2.2.tar.gz http://
    archive.apache.org/dist/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.
    gz
    2015-08-16 17:19:07 URL:http://archive.apache.org/dist/maven/maven-3/3.2.2/binar
    ies/apache-maven-3.2.2-bin.tar.gz [6940967/6940967] -> "/tmp/apache-maven-3.2.2.
    tar.gz" [1]
    

    I also get the above output, even after running wget without --no-proxy

    EDIT 2: Ok it did download the file (I think), but it’s in a red color?

    apache-maven-3.2.2.tar.gz
    

    IS in /tmp/apache-maven-3.2.2.tar.gz on the container, but its in a red color?

    EDIT 3: Ok the wget worked I just had to run it a few times. I’ll leave this question up in case others may find it useful.

  • Docker build error on Mac OS X
  • Docker containers in real life
  • Docker not working after installation
  • Docker - MySQL commands within Dockerfile using RUN (ERROR 2002)
  • How to build an imagem using Boot2Docker on Windows?
  • How do I filter docker swarm nodes by label?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.