Can I restart a docker container listed in the docker ps -a output?

The first time I ran my configured image, I passed in a --name option. After running the image, I stopped it. Now, it appears in the docker ps output:

vagrant@precise64:~/docker$ docker ps -a

Since it has a name, how can I restart it? It seems that the docker run command only accepts an imageid (not a containerid). And if run it again, a new container is created (which is not what I want).

  • Hadoop “Unable to load native-hadoop library for your platform” error on docker-spark?
  • How to let docker container access host network port
  • Deploying jhipster-console to different remote docker machines
  • Custom Installer for Unix Platform to install Python, Java, MySQL
  • Docker Remote API JSON schema definition
  • Rancher Performance (Docker in Docker?)
  • Docker on embedded systems, why not?
  • named docker volume not updating using docker-compose
  • Using docker, puppet and jenkins for continuous delivery and PROD deployment [closed]
  • How to version control Docker containers' data volumes?
  • Dockerfile in a Amazon EB
  • Why use Consul with Kubernetes, Docker, Mesos?
  • One Solution collect form web for “Can I restart a docker container listed in the docker ps -a output?”

    To start a stopped container one could issue

    docker start {name}
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.