A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Docker guidance, 2020
DOCKER
Link: https://www.docker.com
Description: Docker download
Link: https://github.com/jesseduffield/lazydocker
Description: Lazy docker - a super cool management of containers (found this weekend)
Link: https://github.com/docker/machine
Description: Docker Machine - easy remote running of docker containers
Link: https://github.com/bcicen/ctop
Description: Like htop but for containers (found this weekend)
Link: https://www.youtube.com/watch?v=3c-iBn73dDE
Description:This women is nothing short of amazing, she does loads of free videos on docker and k8
Level: Advanced
Link: https://www.youtube.com/watch?v=eGz9DS-aIeY
Description: A quick and dirty getting started
level: beginner
Link: https://www.youtube.com/watch?v=IbUXb4pQbPY
Description: a quick overview of docker - Tech lead can be hard to watch at times tbh
level: mid
Link: https://github.com/docker/awesome-compose
Description: A curated list of Docker Compose samples
Link: https://github.com/veggiemonk/awesome-docker
Description: if you are just not a video person
my fav containers (you should check them out):
- mysql
- postgres
- grafana
- Redis
- portainer
- plex
- Rancher
- traefik
- nextcloud
- influxDB
- loki
- cadvisor
- pi-hole
- ubuntu/debian
(source: Ash-J B)
Docker basics
docker ps | cut -c-$(tput cols) # show running containers without wrapping to the next line
docker ps -q # show just the IDs of the running containers
docker ps -q | head -1 # show ID of most recently started container (how to sort)
# Run a shell on a container
docker run -i -t [Container ID] /bin/bash
# Connect to a shell on an already-runnning docker container.
# (Shell: Use /bin/bash for ubuntu or /bin/ash for alpine)
docker exec -it [Container ID] [shell]
docker exec -it `docker ps -q | head -1` /bin/bash # run shell on the most recently started container
# Copy a file off
# Delete all stopped containers and images
docker system prune -a
# List all images
docker image ls
Why use virtual containers?
- Business need
Approval process}Hardware purchase} Use IaaS instead - Infrastructure as a service- Software development
Deployment} Use PaaS instead - Platform as a service- Feedback
The future:
- Linux containers AKA Docker
- Security/compliance are happy
- Operations are happy
- Business is happy
- Developers are happy
- Kubernetes
- June 2014: Google open source container management project
- Red Hat is collaborating
Source: Jeremy Brown of tenfourty.com / @tenfourty