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).

  • Continuous deployment with docker
  • Connect spark master to spark slave through docker compose
  • Docker private trusted registry
  • See the installation log in oracle silent installation on windows
  • Redis in docker starts/restarts multiple times?
  • Docker do not release ports after stop and remove all container
  • Docker can't find a script that I COPY to an image when I try to invoke it twice via / && / (but once works!)
  • Create app with image from own docker registry on OpenShift 3.1
  • Where is the time spent starting a docker image?
  • Why does Liquibase migration on MySQL database die after acquiring lock on DC/OS (worked fine with docker-compose)?
  • How to connect local kafka in docker container?
  • Unable to install docker 1.5 on ubuntu 14.04 64bit
  • 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.