docker tool
==ubuntu20.04==
run
无持久化
docker run –name 20-04 -ti
-v:
-d -p 3333:22 ubuntu:20.04持久化
卷 只能挂载到一个目录,无法保存全部数据
- 创建一个指定存储位置的卷,名字为ubuntu_20_04
docker volume create
–driver local –opt type=none
–opt device=
–opt o=bind
ubuntu_20_04 - run 映射多个目录,ubuntu_20_04为创建的卷
docker run –name 20-04 -ti
-v ubuntu_20_04:/data
-v:
-d -p 3333:22 ubuntu:20.04
- 创建一个指定存储位置的卷,名字为ubuntu_20_04
commint 将一个正在运行的 Docker 容器的当前状态保存为一个新的镜像
docker commit [容器ID/容器名] [NEW_IMAGE_NAME:TAG] , 这是一个新的镜像,要基于这个镜像启动新的容器,参考[docker_cmd](/notes/docker-cmd/)
ubuntu20.04 docker env config install
- 先执行下面命令更新包,否则无法找到包
apt update
install
apt-get install openssh-serverapt-get install net-tools- 编辑ssh服务器配置文件(server ? sshd_config : ssh_config),设置root登陆及密码登陆
PermitRootLogin yes
PasswordAuthentication yes - 设置ssh密码 重置root登陆密码
passwd root
link
- 使用docker ip connect
ssh root@
- 使用端口映射到主机后连接
ssh root@127.0.0.1 -p 3333
buildroot编译依赖
sudo apt install -y build-essential git wget bzip2 unzip
gawk flex bison
libncurses5-dev libncursesw5-dev \
1 | python3 python3-pip python3-setuptools \ |
配套qt编译,下载arm编译工具链取出 arm-buildroot-linux-gnueabihf-g++ 工具链到build中
==PDF translation based on Python==
docker pull byaidu/pdf2zh
1 | docker run -d -p 7860:7860 byaidu/pdf2zh |
127.0.0.1:7860/
[github address](https://github.com/Byaidu/PDFMathTranslate/blob/main/README_zh-CN.md)