Docker

Docker Basic Notes

This post is just a simple note. More detail in this video: https://www.youtube.com/watch?v=3c-iBn73dDE Difference Image and Container CONTAINER is a running environment for IMAGE virtual file system port blinded: talk to application running inside of container application image: postgres, redis, mongo, … redis in dockerhub are images docker pull postgres docker pull redis # lists installed images docker images docker run redis # `-d` means running in detached mode docker run -d redis # lists running container docker ps # lists running and stopped container docker ps -a # stops the container docker stop <CONTAINER ID> # start the container docker start <CONTAINER ID> # pulls image and starts container docker run redis:4....

March 13, 2023 · Aimer Neige
Server Setup

How to Setup Your New Linux Server

Update System # Debian apt update # Fedora dnf update Install Most Used Tools # Debain apt install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget net-tools # Fedora dnf install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget util-linux-user Create Sudo User # Debian adduser aimer usermod -aG sudo aimer # Fedora useradd -G wheel aimer passwd aimer Test Root Privileges su - aimer sudo cat /etc/shadow Setup SSH Public Key Quickly Upload Your Local Key # run this on your local machine ssh-copy-id aimer@server Import The Key You Hosted # Import your own public key!...

May 17, 2022 · Aimer Neige