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

  • Sonatype Nexus 3 - Scripting Docker Image Cleanup?
  • Cleaning up after multiple docker inserts
  • Error running nodemon in Docker
  • Build with docker into host directory
  • Job tracker is not starting up
  • AWS Elastic Beanstalk Docker deployment failed
  • wget -O /etc/init/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 do I run docker-compose up on a a docker-swarm?
  • Restarting Containers When Using Docker and Nginx proxy_pass
  • docker run container, how to rerun
  • Cloudbees jenkins plugin fails to start containers
  • How to find dependencies before installing a PHP extension with Docker
  • Cannot access tomcat8 server running in docker container from host machine
  • 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;

    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.