Skip to content

Commit

Permalink
Extend docker cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
abregman committed Oct 16, 2021
1 parent bdaa917 commit c6aa218
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<td align="center"><a href="resources/network.md"><img src="images/network.png" width="80x;" height="75px;" alt="Network"/><br /><b>Network</b></a></td>
<td align="center"><a href="resources/linux.md"><img src="images/linux.png" width="75x;" height="75px;" alt="Linux"/><br /><b>Linux</b></a></td>
<td align="center"><a href="resources/terraform.md"><img src="images/terraform.png" width="75px;" height="75px;" alt="Terraform"/><br /><b>Terraform</b></a></td>
<td align="center"><a href="resources/containers.md"><img src="images/containers.png" width="75px;" height="75px;" alt="Containers"/><br /><b>Containers</b></a></td>
</tr>
<tr>
<td align="center"><a href="resources/coding.md"><img src="images/coding.png" width="75px;" height="75px;" alt="coding"/><br /><b>Coding</b></a></td>
Expand All @@ -29,7 +28,6 @@
<td align="center"><a href="resources/kubernetes.md"><img src="images/kubernetes.png" width="75px;" height="75px;" alt="kubernetes"/><br /><b>Kubernetes</b></a></td>
<td align="center"><a href="resources/prometheus.md"><img src="images/prometheus.png" width="75px;" height="75px;" alt="Prometheus"/><br /><b>Prometheus</b></a></td>
<td align="center"><a href="resources/mongo.md"><img src="images/mongo.png" width="75px;" height="75px;" alt="Mongo"/><br /><b>Mongo</b></a></td>
<td align="center"><a href="resources/sql.md"><img src="images/sql.png" width="75px;" height="75px;" alt="sql"/><br /><b>SQL</b></a></td>
</tr>
<tr>
<td align="center"><a href="resources/cloud.md"><img src="images/cloud.png" width="110px;" height="75px;" alt="Cloud"/><br /><b>Cloud</b></a></td>
Expand All @@ -39,11 +37,13 @@
<td align="center"><a href="resources/openstack.md"><img src="images/openstack.png" width="75px;" height="75px;" alt="openstack"/><br /><b>OpenStack</b></a></td>
<td align="center"><a href="resources/security.md"><img src="images/security.png" width="75px;" height="75px;" alt="security"/><br /><b>Security</b></a></td>
<td align="center"><a href="resources/puppet.md"><img src="images/puppet.png" width="75px;" height="75px;" alt="puppet"/><br /><b>Puppet</b></a></td>
<td align="center"><a href="resources/openshift.md"><img src="images/openshift.png" width="75px;" height="75px;" alt="OpenShift"/><br /><b>OpenShift</b></a></td>
</tr>
<tr>
<td align="center"><a href="resources/elk.md"><img src="images/elk.png" width="75px;" height="75px;" alt="ELK"/><br /><b>ELK</b></a></td>
<td align="center"><a href="resources/dataops.md"><img src="images/dataops.png" width="75px;" height="75px;" alt="ELK"/><br /><b>DataOps</b></a></td>
<td align="center"><a href="resources/openshift.md"><img src="images/openshift.png" width="75px;" height="75px;" alt="OpenShift"/><br /><b>OpenShift</b></a></td>
<td align="center"><a href="resources/sql.md"><img src="images/sql.png" width="75px;" height="75px;" alt="sql"/><br /><b>SQL</b></a></td>
<td align="center"><a href="resources/containers.md"><img src="images/containers.png" width="75px;" height="75px;" alt="Containers"/><br /><b>Containers</b></a></td>
</tr>
</table>
</center>
Expand Down Expand Up @@ -316,8 +316,6 @@ Note: "Provisioning" tools can be used to perform configuration management to so

- [ ] Cloud
- [ ] AWS
- [ ] [Cloudcraft](https://www.cloudcraft.co) - Automated AWS diagram mapping of your cloud resources.
- [ ] [nOps](https://www.nops.io/devops/) - a CloudOps platform for fast-moving DevOps teams helping them continuously monitor, analyze, and manage provisioned cloud workloads. **Not Free.** There's a [FREE 30-day trial though](https://www.nops.io/free-trial-request/).
- [ ] Azure
- [ ] GCP
- [ ] OpenStack
Expand Down
2 changes: 2 additions & 0 deletions resources/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Comments
[Cloud Mapper](https://github.com/duo-labs/cloudmapper) | "analyze your Amazon Web Services (AWS) environments""
[EC2 Instances Info](https://www.ec2instances.info) | "Easy Amazon EC2 Instance Comparison"
[amazon-redshift-utils](https://github.com/awslabs/amazon-redshift-utils) | "Contains utilities, scripts and view which are useful in a Redshift environment"
[Cloudcraft](https://www.cloudcraft.co) | Automated AWS diagram mapping of your cloud resources.
[nOps](https://www.nops.io/devops/) | "for fast-moving DevOps teams helping them ... monitor, analyze, and manage provisioned cloud workloads.", **Not Free.**

## Blog Posts & Articles

Expand Down
30 changes: 24 additions & 6 deletions resources/docker.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Docker

## Docker

### Learn

Name | Comments
:------ |:--------:
[Play with Docker](https://labs.play-with-docker.com) | "A simple, interactive and fun playground to learn Docker"

## Articles
### Articles

Name | Comments
:------ |:--------:
Expand All @@ -17,17 +16,36 @@ Name | Comments
[My Docker Cheat Sheet](https://medium.com/statuscode/dockercheatsheet-9730ce03630d) |
[Docker Networking Deep Dive](http://100daysofdevops.com/21-days-of-docker-day-19-docker-networking-deep-dive/?fbclid=IwAR19KJWwhZjulbn7JNbBYLFxKFf-x0v25TSc-_bOJ6YieUND4A6UZcBSUhA) |

## Projects
### Projects

Name | Comments
:------ |:--------:
[awesome-docker](https://github.com/veggiemonk/awesome-docker) |


### Cheatsheet

* Stop and remove all containers: `docker container stop $(docker container ls -aq)`
* Run container with bash shell: `docker run -ti ubuntu:latest bash`
* Check how many containers are running: `docker info`
* Check the docker images on your system: `docker images`
* Cleanup everything: `docker system prune -a -f`

#### Managing Containers

* Launch a container and attach to it: `docker container run -it ubuntu:latest /bin/bash`
* Attaching to running container: `docker container exec -it <name> bash`
* List running containers: `docker container ls`
* List containers (including stopped): `docker container ls -a`
* Stop a container: `docker container stop <name>`
* Remove a container: `docker container rm <name>`

#### Images

* List images: `docker image ls`
* Pull image: `docker image pull <name>:<tag>`
* List only images tagged as "latest": `docker image ls --filter=reference="*:latest"`
* List dangling images: `docker image ls --filter dangling=true`
* Which default registry is used: `docker info`
* Search all repositories that contain the string 'yay': `docker search yay`
* Search only for official repositories: `docker search <name> --filter "is-official=true"`
* Build an image: `docker image build -t <name>:<tag> .`
* List images with the following data: name, tag and size: `docker image ls --format "{{.Repository}}: {{.Tag}}: {{.Size}}"`

0 comments on commit c6aa218

Please sign in to comment.