Cannot create mongodb image on Docker

I’m trying to create mongodb container in Docker. First, create ubuntu container in interactive mode.

$ sudo docker run -i -t ubuntu:12.04 /bin/bash

And install mongodb

  • Docker Containers Running When Daemon is Down
  • AWS ECS - Images from S3
  • how to assign a group of logical Linux interfaces to a Docker container?
  • volume not getting mounted in nginx container
  • How to consist the containers in Docker?
  • Dockerfile and Rails Error
  • $ export http_proxy=xxx.xxx.xxx.xxx:xxxx
    $ export https_proxy=xxx.xxx.xxx.xxx:xxxx
    $ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
    $ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
    $ apt-get update
    ...
    Get:27 http://archive.ubuntu.com precise-security/universe i386 Packages [126 kB]
    100% [Waiting for headers] 
    Err http://downloads-distro.mongodb.org dist Release.gpg                                                                                                                   
    Connection failed
    

    I also set proxy in /etc/apt/apt.conf. How can I solve this problem? I did same in my Ubuntu machine and there was no problem.

  • Liberty Profile Docker for last version 16.0.0.4 available?
  • Why is the OpenCL Kernel not using normal x y cooordinates with Image2D?
  • Multiple RUN vs. single chained RUN in Dockerfile, what is better?
  • Cannot access app in Docker container from outside
  • envsubst command getting stuck in a container
  • Postgres sql file seems to not finish
  • One Solution collect form web for “Cannot create mongodb image on Docker”

    Why not just pull down the mongodb image?

    docker run dockerfile/mongodb
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.