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.

Docker Alphabet Soup - SunshinePHP 2019

64 views

Published on

If you’re new to Docker, the lingo can be more than a little daunting. Containers? Stacks? Images? Services? What’s the difference between “docker stack ps vm” vs. “docker service ls”? What are all those toggles and do I need them? Where did all my logs go, and what the heck is a swarm? In this presentation, we’ll go over the lingo and explain some of the hidden gems in the list of commands that every developer should know.

The associated files used for the demos can be found here:
https://github.com/DanaLuther/DevDockerStackSample/releases/tag/SunPHP19

Published in: Internet
  • Be the first to comment

  • Be the first to like this

Docker Alphabet Soup - SunshinePHP 2019

  1. 1. Docker Alphabet Soup Dana Luther https://joind.in/talk/4f2e3
  2. 2. Docker Command Syntax docker (object) (action) (args) > docker container ls > docker image ls > docker service ls > docker volume ls image container stack service config secret network node plugin swarm Objects ls ps prune inspect create remove / rm Common Actions
  3. 3. The Docker Hierarchy Image Container Service Stack Node Swarm
  4. 4. docker image • docker image ls • docker image ls -a • docker image ls --digests
  5. 5. docker image pull php:7.0-cli docker pull php:7.0-cli
  6. 6. LIVE CODE
  7. 7. docker container • docker container ls • docker container ls -a • docker container ps • docker container prune
  8. 8. LIVE CODE
  9. 9. docker stack • docker stack deploy -c docker-compose.yml vm --with-registry-auth • docker stack ps vm • docker stack rm vm
  10. 10. LIVE CODE
  11. 11. docker service • docker service ls • docker service ps vm_php • docker service logs vm_php --no-trunc • docker service update
  12. 12. LIVE CODE
  13. 13. docker swarm • docker swarm init • docker swarm join
  14. 14. LIVE CODE
  15. 15. docker node • docker node ls • docker node update --availability=active • docker node update --availability=drain
  16. 16. LIVE CODE
  17. 17. docker config • docker config ls • docker config create vm_config.2 ./somefile.conf • docker config rm vm_config.2
  18. 18. docker secret • docker secret ls • docker secret ls -f name=vm_secret • docker secrete create
  19. 19. LIVE CODE
  20. 20. RECAP:The Docker Hierarchy Image Container Service Stack Node Swarm
  21. 21. RECAP:Docker Command Syntax docker (object) (action) (args) > docker container ls > docker image ls > docker service ls > docker volume ls image container stack service config secret network node plugin swarm Objects ls ps prune inspect create remove / rm Common Actions https://docs.docker.com/engine/reference/commandline/docker/
  22. 22. Questions?? https://joind.in/talk/4f2e3 🤔 ? ? ? ? @danaluther https://www.linkedin.com/in/danaluther dluther@envisageinternational.com

×