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.

  • why my pipework does't add a interface in my container?
  • How to continue using docker container after startup application exit?
  • docker: Only execute command in when container is running
  • Adding nodes to shipyard
  • kpm restore unable to find System.Net.Http
  • Restore SQL Server database to Linux Docker
  • How do I install Docker on an NVIDIA Tegra Jetson TK1 with a 32 bit ARM processor running Ubuntu 14.04?
  • docker multi-host networking cluster-advertise option
  • NginX as HTTPS reverse proxy for multiple sub-domains?
  • Running composer update with docksal returns lack of memory
  • How to run Swagger Spring Application using Jetty on Docker
  • How to restore snapshot of docker image (for testing purpose, every test on this same docker image)
  • 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.