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.

  • Don't have permission to access / on this server (apache2) in docker
  • CPU multithreading of Caffe in a Docker Container
  • Docker - MySQL container does not keep running
  • User and file permission configuration in Docker containers (docker-compose version 3)
  • Push a Docker Compose to a Production Server
  • Docker jetty container JVM memory allocation
  • gitlab-ci add --net=host option to docker
  • How to enable colors in a Docker container?
  • How to set a default webapp in jetty Docker
  • How to automatically start a service when running a docker container?
  • Asked password when ssh to container
  • Rapid virtualization with “fork from here” to a new LXC/docker container
  • 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.