#docker 安装
http://www.linuxidc.com/Linux/2014-12/110034.htm
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
[root@dbLunbo1 ~]# docker save cb60914930a2 >tf_cv_num.tar
#镜像文件导入
docker load < tf_cv_num.tar
docker load < tf_cv_num.tar
#删除
docker rmi imageID