centos6.6 in Dockerfile gives error

I am trying to use centos6.6 in Dockerfile,
I tried following both lines one by one in my Dockerfile:

FROM centos:centos6.6
FROM centos:6.6

But getting this error while running docker:

  • “Unable to access jarfile” when trying to run a jar with docker
  • Nginx and Docker - how to configure hosts
  • Efficient Dockerfile for many apt-get packages
  • Docker daemon can't initialize network controller
  • docker backup and restore mongodb
  • after delete docker image, why can still find the deleted image by _catlog api?
  • root@onl-dev:/distros/trial# docker run -it trial
    docker: Error response from daemon: No command specified.
    See 'docker run --help'.

    Can someone suggest me if I am missing anything here?

  • How to deploy docker file on other server
  • Html links to other pages, images and Css not working in Docker container?
  • Mysterious UnicodeDecodeError in python3 while building Docker container
  • Can't find equivalent of 'docker node ps' in Docker Python SDK
  • Get docker-compose.yml file location from running container?
  • How to setup continuous integration - deployment: bitbucket, drone.io, docker hub, swarm?
  • One Solution collect form web for “centos6.6 in Dockerfile gives error”

    The error seems pretty clear: you haven’t specified a command to run, either in your Dockerfile or on the command line. You could try:

    docker run -it trial bash

    …if you want a shell. Or you could add to your Dockerfile:

    CMD ["bash"]

    …and now your image would run this by default if no command is provided on the command line.

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