公司到了月底,要提交上月份的工作紀錄,
利用 git commit 來回憶一下
$ cd [專案目錄]
$ git log --since='2019-08-01' --before='2019-08-31' --author=Frankie
參考
Git 基礎 - 檢視提交的歷史記錄
$ cd [專案目錄]
$ git log --since='2019-08-01' --before='2019-08-31' --author=Frankie
$ date
$ sudo date
-s"2019-09-01 15:30:00"
sudo
raspi-config
$ sudo
nano /etc/apt/sources.list
deb http://free.nchc.org.tw/raspbian/raspbian/ buster main contrib non-free rpi
sudo
nano /etc/apt/sources.list.d/raspi.list
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main
$ sudo apt-get clean all
$ sudo apt update
sudo
raspi-config
$ sudo apt update
$ sudo apt install gnupg2
$ curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -
$ echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable" | sudo tee /etc/apt/sources.list.d/docker.list
$ sudo apt update
$ sudo apt install
--no-install-recommends docker-ce
$ sudo systemctl enable docker
$
sudo systemctl start docker.service
$ sudo usermod -aG docker $USER
$ sudo docker run hello-world
docker run hello-world
## List Docker CLI commands
docker
docker container --help
## Display Docker version and info
docker --version
docker version
docker info
## Execute Docker image
docker run hello-world
## List Docker images
docker image ls
## List Docker containers (running, all, all in quiet mode)
docker container ls
docker container ls --all
docker container ls -aq
docker run -d -p 4000:80 friendlyhello
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED
1fa4ab2cf395 friendlyhello "python app.py" 28 seconds ago
docker container stop 1fa4ab2cf395
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
...
$ docker image ls
docker build -t friendlyhello . # Create image using this directory's Dockerfile
docker run -p 4000:80 friendlyhello # Run "friendlyhello" mapping port 4000 to 80
docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode
docker container ls # List all running containers
docker container ls -a # List all containers, even those not running
docker container stop <hash> # Gracefully stop the specified container
docker container kill <hash> # Force shutdown of the specified container
docker container rm <hash> # Remove specified container from this machine
docker container rm $(docker container ls -a -q) # Remove all containers
docker image ls -a # List all images on this machine
docker image rm <image id> # Remove specified image from this machine
docker image rm $(docker image ls -a -q) # Remove all images from this machine