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

  • How do I serve a Harp/nginx page from Docker?
  • Using Docker in local development [closed]
  • How do i automatically load code changes using docker fig
  • Docker API NodeJS
  • nginx test failing with different configuration file
  • Docker application deployment DEV vs TEST
  • Can't send large (15Kb) UDP datagrams using docker
  • Unable to install Docker for Windows for the Divio App
  • an established connection was aborted by the software in your host machine Docker
  • Unable to see the contents in the docker container
  • Docker 1.12 Swarm Overlay Network Published Port
  • Remote Node.js typescript debugging in WebStorm
  • 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.