docker 配额制AI环境


#docker 安装
http://www.linuxidc.com/Linux/2014-12/110034.htm

#鉴黄环境
docker run -i -t docker.io/continuumio/anaconda3 /bin/bash
conda install tensorflow
confa install numpy
conda install opencv
 
 #docker修改后,内容提交(否则重启后,修改内容会丢失)
 docker ps -a
 
 [root@dbLunbo1 ~]# docker ps -a
CONTAINER ID        IMAGE                                          COMMAND                  CREATED             STATUS                         PORTS               NAMES
ac9d30d5d543        docker.io/continuumio/anaconda3                "/usr/bin/tini -- /bi"   14 minutes ago      Up 14 minutes                                      grave_einstein
76d775d6a934        anaconda3_tf_opencv_numpy                      "/usr/bin/tini -- /bi"   49 minutes ago      Exited (127) 45 minutes ago                        evil_booth
e31b33f3bccd        docker.io/continuumio/anaconda3_tf_cv2_numpy   "/usr/bin/tini -- /bi"   About an hour ago   Exited (0) About an hour ago                       silly_fermat
c842d0db4897        279ba92400be                                   "/usr/bin/tini -- /bi"   2 hours ago         Exited (0) 14 minutes ago                          sharp_agnesi
975033f3ea72        279ba92400be                                   "/usr/bin/tini -- /bi"   2 hours ago         Exited (0) 2 hours ago                             gloomy_goodall
6b946e817939        279ba92400be                                   "/usr/bin/tini -- rz"    2 hours ago         Exited (127) 2 hours ago                           dreamy_turing
feab1cfb2b0c        279ba92400be                                   "/usr/bin/tini -- /bi"   2 hours ago         Exited (127) 2 hours ago                           adoring_euler
e5c4e587d149        279ba92400be                                   "/usr/bin/tini -- apt"   2 hours ago         Exited (0) 2 hours ago                             dreamy_yalow
dcbf27f705a7        279ba92400be                                   "/usr/bin/tini -- ins"   3 hours ago         Exited (1) 3 hours ago                             lonely_murdock
cc6711240e64        279ba92400be                                   "/usr/bin/tini -- /bi"   4 hours ago         Exited (127) 3 hours ago                           mad_kalam
d7b0565b3c63        docker.io/learn/tutorial                       "echo 'hello word'"      5 hours ago         Exited (0) 5 hours ago                             pedantic_jones
 
docker commit c842d0db4897 anaconda3_tf
 
 
 #导入导出
 查看本地所有images
 docker images
REPOSITORY                                     TAG                 IMAGE ID            CREATED             SIZE
docker.io/continuumio/anaconda3                latest              0fa6c99bf9d7        6 minutes ago       3.637 GB
anaconda3_tf_opencv_numpy                      latest              cb60914930a2        6 minutes ago       3.637 GB
anaconda3_tf_cv2_numpy                         latest              4fbc75c025d5        About an hour ago   3.637 GB
docker.io/continuumio/anaconda3_tf_cv2_numpy   latest              e42abb41df01        About an hour ago   3.637 GB
docker.io/continuumio/anaconda3_tf             latest              0cb66c153c11        About an hour ago   3.637 GB
<none>                                         <none>              31921a24e3c2        About an hour ago   3.332 GB
<none>                                         <none>              4f0b40b797d3        About an hour ago   3.332 GB
docker.io/continuumio/anaconda3                <none>              279ba92400be        11 weeks ago        3.047 GB
docker.io/learn/tutorial                       latest              a7876479f1aa        4 years ago         128 MB
#打包镜像文件,导出
[root@dbLunbo1 ~]# docker  save cb60914930a2 >tf_cv_num.tar
#镜像文件导入
docker load < tf_cv_num.tar


#删除
 docker rmi imageID
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值