service docker start fails (daemon is not a docker command)

I have a problem after I have tried to restart docker. Since then,
service docker start returns “start: Job failed to start”.

This may have started once I have changed docker.conf. I have tried to reupload it using the command

  • How can I somewhat securely run distccd on a docker image in the cloud?
  • Installation of Kubernetes-node fails with conflicting packages on CentOs 7
  • docker build stopped at 67c44324f4e3: Downloading 8.633 MB
  • Access Token for Dockerhub
  • How do I run celery status/flower without the -A option?
  • Run docker - Error parsing reference
  • wget -O /etc/init/docker.conf https://raw.githubusercontent.com/docker/docker/master/contrib/init/upstart/docker.conf
    

    however, I was not lucky to fix this.

    cat /var/log/upstart/docker.log returns:

    Waiting for /var/run/docker.sock
    docker: 'daemon' is not a docker command. See 'docker --help'.
    Waiting for /var/run/docker.sock
    docker: 'daemon' is not a docker command. See 'docker --help'.
    Waiting for /var/run/docker.sock
    docker: 'daemon' is not a docker command. See 'docker --help'.
    

    Any help would be really appreciated.

  • How can I expose a Docker container port only to localhost so that it is also accessible via an ssh tunnel?
  • Push in docker private registry
  • add rethinkdb in docker-compose
  • Run Docker commands in Jenkins Shell
  • How to change owner of Docker for Windows
  • Docker exec on an intermediate build image doesn't work
  • One Solution collect form web for “service docker start fails (daemon is not a docker command)”

    You likely have an old version of docker installed; the docker daemon subcommand was added in docker 1.8. Before that, the daemon was started using the -d / --daemon option (docker -d).

    The version of the upstart-configuration you downloaded is intended for the current docker release; for older versions of docker, be sure to download the version that matches the version you’ve installed, for example;
    https://raw.githubusercontent.com/docker/docker/v1.7.1/contrib/init/upstart/docker.conf

    I would suggest to upgrade to a more recent version of docker, because versions older than 1.8 are now getting quite old (in Docker terms)

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