x86中部署docker环境

 使用dockerhub搜索Ubuntu x86

1、拉取镜像

docker pull balenalib/odyssey-x86-ubuntu

 2、查看镜像

docker images

3、保存镜像

docker save -o ubuntuX86.tar ubuntu/x86:v1

4、加载镜像

docker load -i ubuntuX86.tar 

5、创建并运行容器

docker run -itd balenalib/odyssey-x86-ubuntu:latest /bin/bash

 6、进入容器

docker attach 740106afdbad

 7、安装anacona

Index of /icon-default.png?t=N7T8https://repo.anaconda.com/archive/or

Index of /icon-default.png?t=N7T8https://repo.anaconda.com/miniconda/

 8、安装工具

apt-get update

apt-get install -y vim

bash Miniconda3-py38_23.9.0-0-Linux-x86_64.sh

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cpu -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install pyyaml -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install seaborn -i https://pypi.tuna.tsinghua.edu.cn/simple

python3 -m pip install paddlepaddle==2.5.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install -U paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install shapely -i https://pypi.tuna.tsinghua.edu.cn/simple

9、宿主机中复制项目到docker中

(1)docker ps

(2)docker cp /opt/test/file.txt mycontainer:/opt/testnew 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值