docker 学习笔记

注: 跟随 学习docker.

学习过程中遇到的问题

1) 运行第一个容器,在host 上无法访问虚拟机的ip.

原因:经同事提醒,virtualBox 的虚拟机,可以使用网桥模式,这样vm 的网卡与 host 的在同一子网。

2)通过 dockerfile 制作镜像时,无法安装 python3.

报错:command returned a non-zero code: 100

原因:在 https://stackoverflow.com/questions/38002543/apt-get-update-returned-a-non-zero-code-100 上找到答案,

Because you have an https sources. Install apt-transport-https before executing update.

FROM ubuntu:14.04.4
RUN apt-get update && apt-get install -y apt-transport-https

posted on 2018-01-17 22:00  lisalala  阅读(137)  评论(0编辑  收藏  举报

导航