码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu16.04运行docke容器

时间:2017-06-30 19:50:27      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:otl   perm   roo   int   bottom   add   ubuntu   main   lis   

  1. 配置静态ip及DNS

sodu vim /etc/network/interfaces

auto ens32

iface ens32 inet static

address 10.0.0.111

netmask 255.255.255.0

gateway 10.0.0.2

/etc/init.d/networking restart

vi /etc/resolv.conf

nameserver 10.0.0.2

nameserver 8.8.8.8

  1. 允许root登录

vim /etc/ssh/sshd_config

PermitRootLogin yes

/etc/init.d/ssh restat

  1. 配置apt源

mv /etc/apt/sources.list /etc/apt/sources.list.bak

vi /etc/apt/sources.list

deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse

apt-get update

Ubuntu16.04运行docke容器

标签:otl   perm   roo   int   bottom   add   ubuntu   main   lis   

原文地址:http://www.cnblogs.com/jacob-tian/p/7100221.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!