Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What's New in Docker 19.03.0 Pre-Release?

251 views

Published on

These talks about the major new features introduced in Docker 19.03.0 recently. I will be updating these slides in regular basis.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

What's New in Docker 19.03.0 Pre-Release?

  1. 1. What’s New in Docker 19.03.0 Pre-Release?
  2. 2. $whoami Principal Development Engineer at DellEMC 1st half of my career was in CGI & VMware 2nd half of my career has been in System Integration Testing Docker Captain (since 2016) Docker Bangalore Meetup Organizer ( 7700+ Registered Users) DockerLabs Incubator Ajeet Singh Raina Twitter: @ajeetsraina GitHub: ajeetraina
  3. 3. $curl www.collabnix.com
  4. 4. A Quick Glance: Docker Inc. Products 2019
  5. 5. Upcoming New Features in Docker 19.03.0
  6. 6. Support for Fast Context Switching
  7. 7. Context Switching A configuration that you use to access a particular cluster
  8. 8. The New `docker context` CLI Both for Swarm & Compose on Kubernetes
  9. 9. Context Switching
  10. 10. Reference http://collabnix.com/docker-19-03-0-fast-context-switching-rootless-docker-sysctl- support-for-swarm-services/ https://github.com/docker/cli/pull/1501
  11. 11. Sysctl Support for Swarm
  12. 12. Sysctl – Tuning Kernel Parameter at Runtime Docker does support Sysctl & runc honors this
  13. 13. Sysctl – Tuning Kernel Parameter at Runtime Support for Sysctl in Docker Compose all started during compose file format v2.1
  14. 14. Sysctl – Tuning Kernel Parameter at Runtime
  15. 15. Not all SYSCTL are Namespaced CURRENTLY SUPPORTED SYSCTLS . IPC Namespace: kernel.msgmax, kernel.msgmnb, kernel.msgmni, kernel.sem, kernel.shmall, kernel.shmmax, kernel.shmmni, kernel.shm_rmid_forced Sysctls beginning with fs.mqueue.* If you use the --ipc=host option these sysctls will not be allowed. Network Namespace: Sysctls beginning with net.* If you use the --network=host option using these sysctls will not be allowed.
  16. 16. References http://collabnix.com/sysctl-support-for-docker-swarm- cluster-arrives-with-docker-19-03-0-beta-1/ https://github.com/docker/cli/pull/1754
  17. 17. Rootless Docker
  18. 18. Rootless Mode Allow running dockerd as a non-root user  Docker 19.03.0 is the first release which support Rootless Docker Mode  Allow running dockerd as a non-root user Don’t Confuse it with  docker run --user foo - Executes the process in the container as a non-root - The dockerd, containerd and runc still running as the root  USER instruction in Dockerfile - Same as above - Notably you can’t RUN dnf install ..
  19. 19. Don’t Confuse it with  Usermod –aG docker foo - Allow non-root user to connect to /var/run/docker.sock  sudo docker or chmod +s dockerd - Nope  dockerd –userns-remap - Execute containers as a non-root user(dockremap), using user namespaces - Inside the container, dockremap behave as if it is a root
  20. 20. How does it work?
  21. 21. Suggested Read
  22. 22. References https://medium.com/@tonistiigi/experimenting-with-rootless-docker-416c9ad8c0d6
  23. 23. Device Support for Windows Containers
  24. 24. Device in Containers on Windows  By default, Windows containers are given minimal access to host devices--just like Linux containers.  There are certain workloads where it is beneficial--or even imperative--to access and communicate with host hardware devices.
  25. 25.  The container host must be running Windows Server 2019 or Windows 10, version 1809 or newer.  Your container base image version must be 1809 or later.  Your containers must be Windows containers running in process-isolated mode.  The container host must be running Docker Engine 19.03 or newer. Requirement:
  26. 26. What Devices are Supported?
  27. 27. Thank You

×