博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Dive Into Docker
阅读量:6934 次
发布时间:2019-06-27

本文共 963 字,大约阅读时间需要 3 分钟。

  hot3.png

  1. install VirtualBox-4.2.24-92790-Win.exe
  2. check whether CPU is support virtualization technology with software cpu-z
  3. enable vt-x in BIOS
  4. run book2docker.iso in VirtualBox
  5. set proxy and run docker sudo HTTP_PROXY=http://192.168.56.1:21/ docker -d &
  6. pull busybox and base docker pull busybox docker pull base
  7. sudo docker run busybox echo hello wolrd
  8. sudo docker run -i -t busybox /bin/bash

Ubuntu 14.04

Host-only ethernet adapter in VirtualBox sudo apt-get update sudo apt-get install openssh-server -y sudo apt-get install docker -y sudo ln /usr/bin/docker.io /usr/local/bin/docker sudo service docker.io stop sudo HTTP_PROXY= docker -d & alias d='sudo docker'

Proxy

  1. apt-get

    create a file named proxy in /etc/apt/apt.conf.d/ as below, Acquire::http::Proxy "";

  2. git

    git config --global http.proxy

  3. wget

    /etc/wgetrc -> http_proxy =

  4. docker

    sudo HTTP_PROXY= docker.io -d &

  5. curl

    export http_proxy= export https_proxy=

Reference

转载于:https://my.oschina.net/l1z2g9/blog/266790

你可能感兴趣的文章
(转) Supercharging Style Transfer
查看>>
JMeter性能测试,验证请求数据的准确性(wc命令)
查看>>
Python学习札记(二十三) 函数式编程4 sorted
查看>>
跟着百度学PHP[14]-PDO-优化驱动
查看>>
mysql的.sql文件头部 /*!32312 IF NOT EXISTS*/;
查看>>
ONVIF测试方法及工具
查看>>
《ArcGIS Runtime SDK for Android开发笔记》——数据制作篇:发布具有同步能力的FeatureService服务...
查看>>
Oracle快速克隆安装
查看>>
Spring Boot中使用JdbcTemplate访问数据库
查看>>
struts2的核心和工作原理
查看>>
一种快速统计SQL Server每个表行数的方法
查看>>
(zhuan) How to Train Neural Networks With Backpropagation
查看>>
MHA快速搭建
查看>>
看过的编程类好书(资料)
查看>>
BZOJ 4517: [Sdoi2016]排列计数 [容斥原理]
查看>>
抽水算法
查看>>
.net 中struct(结构)和class(类)的区别
查看>>
Unity3D的坑系列:动态加载dll
查看>>
从JSON数据中取出相关数据
查看>>
Quartz安装包中的15个example
查看>>