Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abregman committed Jul 25, 2021
2 parents 90a50c5 + 3e95b72 commit 5664eef
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Some best practices for you to learn and use in your scripts
When a script written in Bash fails to run a certain command it will keep
running and will execute all other commands mentioned after the command which failed.
Most of the time we would actually want the opposite to happen.
In order to make Bash exist when a specific command fails, use 'set -e' in your script.
In order to make Bash exit when a specific command fails, use 'set -e' in your script.

```
#!/usr/bin/env bash
Expand Down
26 changes: 26 additions & 0 deletions resources/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Docker

## Articles

Name | Comments
:------ |:--------:
[Docker CheatSheet](https://cheatsheet.dennyzhang.com/cheatsheet-docker-a4) |
[Everything you need to know about containers](https://medium.com/faun/everything-you-need-to-know-about-containers-7655badb4307) |
[A container networking overview](https://jvns.ca/blog/2016/12/22/container-networking) |
[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

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`

0 comments on commit 5664eef

Please sign in to comment.