Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker scripts and system utilities*** #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/add-user-to-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo usermod -a -G docker $USER
1 change: 1 addition & 0 deletions docker/docker create volume.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker volume create ${volume_name}
1 change: 1 addition & 0 deletions docker/docker-compose-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker compose down && docker compose pull && docker compose up -d
1 change: 1 addition & 0 deletions docker/docker-create-network.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker network create ${network_name}
1 change: 1 addition & 0 deletions docker/docker-kill-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker kill $(docker ps -q)
1 change: 1 addition & 0 deletions docker/docker-prune-system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker system prune --all --force --volumes && docker volume prune --all --force && docker network prune --force
1 change: 1 addition & 0 deletions docker/docker-ps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Networks}}\t{{.Status}}\t{{.Ports}}"
2 changes: 2 additions & 0 deletions system/arch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
arch
# output the architecture of your machine
1 change: 1 addition & 0 deletions system/systemd-analyze-blame.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
systemd-analyze blame