Docker private repo with multiple images

Can we host multiple images on single private repo ?

Like

  • Docker PHP5.6 Call to undefined function bindtextdomain()
  • Docker: hashicorp/boot2docker fails to download behind corporate proxy
  • What is the (best) way to manage permissions for docker shared volumes
  • Why “docker attach” not working and blocking my konsole on ubuntu
  • Disable CSS and Javascript cache in nginx server created with Docker
  • Docker 1.3 fails to start on RHEL6.5
    1. ubuntu:12.04
    2. ubuntu:14.04

    So My private repo like MYREPO:ubuntu:12.04 and ubuntu:14.04

  • kafka image build kompose
  • Can docker port forward to a unix file socket on the host container?
  • Is it possible to pin the container to a remote machine instead of a new container instance?
  • HyperV is not available on Home editions
  • Can't open file when i try to run a shell script inside Docker container
  • how to configure docker container to run /usr/sbin/sshd upon startup
  • One Solution collect form web for “Docker private repo with multiple images”

    Yes.

    # Create a container
    docker run --name image1 -it busybox echo Image1
    # Commit container to new image
    docker commit image1 amjibaly/stuff:image1
    # Push to dockerhub repo
    docker push amjibaly/stuff:image1
    
    # Create a second container
    docker run --name image2 -it busybox echo Image2
    # Commit container to new image
    docker commit image2 amjibaly/stuff:image2
    # Push to same dockerhub repo with different tag
    docker push amjibaly/stuff:image2
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.