Why is “docker start” outputting the name of the container?

I have a small minimal test container made using the ruby image. The ruby script is simple, and outputs the single string “Twitter”.

When I first run the image and create the container, I get this output:

  • Log management on Docker
  • working in Docker with large datasets
  • Run test cases for a tool across a fleet of windows hosts
  • Using rbenv with Docker
  • Run old Linux release in a Docker container?
  • Tensorflow Serving on Docker | write too long
  • $ docker run -it --name my-running-script my-ruby-app

    Great so far – the script completes and the container exits.

    But when I try to start it again, it first outputs the name of the container:

    $ docker start -a my-running-script

    What is causing this output, and how can I get it to stop? (It’s printed on stdout, and redirecting stderr doesn’t help.)

    I don’t know if it’s relevant, but this is running on OS X using boot2docker.

  • Docker: cannot copy file within the container
  • Flask-WTF CSRF validation fails when app moved to docker production environment
  • Installing Postgres 9.6 in centos docker
  • Networking and DNS in Kubernetes local cluster with Docker
  • Run Jenkins Job in a container
  • Unable to run cygwin in Windows Docker Container
  • One Solution collect form web for “Why is “docker start” outputting the name of the container?”

    This is the expected behavior for docker start. Then you can do things like assign the containerID to a variable, etc.

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