Confused about Docker 1.12 types

I am new to docker and I am a bit confused of what is the difference between Tasks/Containers and between Images/Services. If somebody can explain a little bit about them I will appreciate it.

  • autoexpect on docker centos6.6 container cannot work
  • docker-compose persisting folder empty
  • git ssh can't access to gitlab in a docker container
  • Use environment variables in CMD
  • The npm command is not found in my NodeJS docker container
  • Docker + fig / compose + nginx + node.js + mysql + redis
  • How to setup a development environment for java in unix for each of the team member
  • Connect to dockerized rest service from mobile app in development
  • Google Container Engine stdout Logs Not Showing Up
  • How to copy files in maven build that can be used at run time on Docker container?
  • Docker - Install PDO Driver for PHP + Nginx
  • Howto to start docker daemon under fedora, so that it is bound to tcp port
  • One Solution collect form web for “Confused about Docker 1.12 types”

    • Image: this is your definition, it contains all the files, environment variables, etc, needed to create a container.
    • Container: this is an instance of an image, it includes the network, places a RW layer over RO image data, attaches volumes, etc
    • Services: These are how swarm manages a running image, with scale it may be multiple containers, and it includes features like service discovery
    • Tasks: They’ve moved away from this with the GA release and just used docker service ps, but a task is a container within a service
    • Stack: This is a group of services, defined from the experimental DAB “bundle” files. It will become the docker-compose equivalent within Swarm.
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.