1.依赖Ubuntu系统安装sqlite3生成镜像 dockerfile文件 FROM ubuntu:trusty RUN sudo apt-get -y update RUN sudo apt-get -y upgrade RUN sudo apt-get install -y sqlite3 libsqlite3-dev RUN mkdir /db RUN /usr/bin/sqlite3 /db/dome.db CMD /bin/bash 生成镜像 #构建镜像命令,不要忘记命令最后的. d
使用 mac系统,发现docker没有 docker0网桥,无法直接在宿主机上 访问 容器的ip, 在测试的时候有这种需求,而不是通过-p的方式,可以参考下面的连接,主要就是 修改 setting.json,加上socket代理端口,然后配置在网络高级中配置 sockets代理即可. 具体可以参考如下链接. https://github.com/docker/for-mac/issues/2670 For anyone else having trouble following this thr