头像

褐色.x.




离线:2个月前


最近来访(4)
用户头像
David_Jobs
用户头像
秀策
用户头像
星辰眼眸
用户头像
AcGrt


褐色.x.
3个月前

check disk usage

df -h

check docker system usage

docker system df -v

clean

docker container prune; docker image prune; docker volume prune

docker builder prune -a

docker rmi $(docker images -q)
docker rm -v $(docker ps -qa)

reference




褐色.x.
4个月前

Unicode is a character set. UTF-8 is encoding.

Unicode is a list of characters with unique decimal numbers (code points). A = 65, B = 66, C = 67, ....

This list of decimal numbers represent the string “hello”: 104 101 108 108 111

Encoding is how these numbers are translated into binary numbers to be stored in a computer:

UTF-8 encoding will store “hello” like this (binary): 01101000 01100101 01101100 01101100 01101111

Reference




褐色.x.
5个月前

1. 在 Dockerfile 中启用

FROM ubuntu:latest
RUN apt update && apt install openssh-server sudo -y
RUN service ssh start
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]

2. 在容器启动之后启用

apt-get update && apt-get install openssh-server

service ssh start