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.

  • Why will my Nginx docker container not start when the --restart switch is specified
  • Running multiple docker containers in same host
  • How to delete all Docker local Docker images
  • How to show the ID of the oldest running docker container?
  • How can I remove all containers by image name and do nothing if it already removed
  • Docker-compose cannot find Java
  • 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://
    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?


    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.

  • Thousands of cAdvisor Docker containers created until disk runs out of space
  • Command to Copy/share jmeter master container results (Docker) generated in by running the script in non-gui mode to EC2 instance
  • Docker mount directories to container rules
  • How to repair docker or reinstall it?
  • grunt serve in docker container max call stack error
  • Oracle11g database long startup in docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.