linux安装了docker之后,用ifconfig指令看多了一个docker0,怎么关掉 为什么linux主机下能看见docker进程
docker\u8fd0\u884ccentos \u4e3a\u4ec0\u4e48\u4e0d\u80fdifconfigcentos7\u5df2\u7ecf\u4e0d\u4f7f\u7528 ifconfig\u547d\u4ee4\u4e86\uff0c\u5df2\u7ecf\u7528ip\u547d\u4ee4\u4ee3\u66ff\uff1b
\u5e76\u4e14\u7f51\u5361\u540d\u79f0\u4e5f\u4e0d\u662feth0\u4e86\uff0c\u800c\u662f\u6539\u6210eno16777736\u4e86\u3002
\u9a8c\u8bc1\u65b9\u5f0f sudo docker run hello-world \u4e8e\u662f \u53ea\u9700\u8981\u5728shell\u4e2d\u6267\u884c sudo docker run hello-world \u7136\u540e \u5224\u65ad$?\u5c31\u597d \u5982\u679c\u662f0 \u90a3\u4e48\u5c31\u5b89\u88c5\u4e86 \u5426\u5219\u6ca1\u5b89\u88c5 \u6216\u8005 \u76f4\u63a5which docker
干嘛要关掉呢,那是docker软件的虚拟网卡的接口名称,你想让docker不能联网吗。如果想临时的关闭它也可以,用ifcongfig docker0 down命令就可以关闭了;关闭后还可以再用ifcongfig docker0 up命令打开。绛旓細浣犳病瑁呴敊锛docker灏辨槸涓涓交閲忕殑铏氭嫙鏈哄鍣紝鏈鍒濇槸鐢ㄦ潵鎻愪緵缁熶竴鐨勫垎鍙戠幆澧冿紝娑堢伃璞♀滀负浠涔堟垜瀹夎閮ㄧ讲浼氬嚭鐜拌繖涓棶棰樷濅箣绫荤殑鐑︽伡锛岄氳繃鎶婂垎鍙戠幆澧冩墦鍖呬负闀滃儚锛屾彁渚涗竴涓爣鍑嗙殑缁熶竴鐨勭敓浜у拰寮鍙戠幆澧冦
绛旓細涓嶈兘锛孌ocker骞朵笉鏄櫄鎷熸満锛屼粬鍜屽師绯荤粺鍏辩敤搴曞眰鐨勶紝鎵浠inux涓婅鐨凞ocker涓嶈兘瑁匴indows搴旂敤绋嬪簭鐨勶紝鑷劧涔熸棤娉曡繍琛學indows闀滃儚瀹瑰櫒浜嗐傛ゼ涓诲鏋滃Linux绯荤粺銆乨ockers瀹瑰櫒绛夌煡璇嗕笉澶簡瑙o紝鍙互鐧惧害銆奓inux灏辫杩欎箞瀛︺嬶紝閲岄潰鏈変竴浜涚浉鍏崇殑鏁欑▼鏂囩珷鍙互鍙傝冨涔犮
绛旓細鐜板湪锛岃鎴戜滑娣卞叆鎺㈢储濡備綍鍦Linux鐜涓紝鐗瑰埆鏄疌entOS 7涓婏紝閫氳繃yum鍛戒护杩涜瀹夎銆傝鎴戜滑涓姝ユ鏉ワ紝鐘瑰鎷嗚В澶嶆潅鐨勭鎶鎷煎浘銆傛楠や竴锛氱郴缁熻蒋浠跺寘鐨勬洿鏂伴鍏堬紝纭繚浣犵殑绯荤粺杞欢鍖呮槸鏈鏂扮殑锛岃繖瀵逛簬鍚庣画鐨勫畨瑁呰嚦鍏抽噸瑕併傚彧闇鎵ц浠ヤ笅鍛戒护锛歴udo yum update -y姝ラ浜岋細瀹夎蹇呭杞欢鍖瀹夎Docker闇瑕佸嚑涓叧閿粍浠...
绛旓細鍙栧喅浜庝綘鐨刣ocker鎬庝箞瀹夎鐨锛岄嗘搷浣滃氨琛屼簡銆傚厛鍋滄帀docker鏈嶅姟 鍐嶆牴鎹畨瑁呮柟寮忕‘瀹氬嵏杞絛ocker鐨勬柟娉 濡傛灉鏄痽um/apt瀹夎鐨勶紝鎶婂畨瑁呮椂鐨刬nstall鍛戒护鏀逛负remove灏卞彲浠ュ嵏杞斤紱濡傛灉鏄墜鍔ㄥ畨瑁卹pm/deb鍖呯殑鏂瑰紡瀹夎鐨勶紝浠pm鐨勪负渚嬶紝灏辩敤rpm -e 杞欢鍖呭悕鏉ュ嵏杞姐
绛旓細鍦ㄨ櫄鎷熸満linux绯荤粺閲瀹夎docker锛焏ocker鐢ㄧ殑鏄Linux鍐呮牳鐨刢group鍔熻兘銆傝櫄鎷熸満鐢ㄧ殑鏄疌PU鐨勭‖浠惰櫄鎷熷寲鍔熻兘锛岃繖涓滆タ鐜板湪閮芥槸鐙崰锛堝惉璇碬SL2鐢ㄧ殑涔熸槸铏氭嫙鏈猴紝浣嗘槸鍙互璁╁埆鐨勮櫄鎷熸満鍏变韩铏氭嫙鍖栨敮鎸侊級銆俉indows涓嶆敮鎸丩inux鐨刢group锛屾墍浠ュ疄闄呬笂Windows鐨刣ocker鏄厛璺戜釜铏氭嫙鏈猴紝鍦ㄨ繖涓櫄鎷熸満閲岄潰璺戜竴涓狶inux鍐呮牳锛岀敱...
绛旓細鍦∟AS绯荤粺涓紝鐢熸佺殑閲嶈鎬т笉瀹瑰拷瑙嗭紝灏ゅ叾鏄Docker鐨瀹屽鐢熸併傛湰鏂囧皢鎸囧浣犲浣曞湪Win10 LTSC鐜涓瀹夎CentOS Linux锛屼互鏀寔Docker鐨勮繍琛屻傞鍏堬紝纭繚瀹夎寰蒋.NET杩愯搴擄紝鍙氳繃缃戠粶鑾峰彇鏈鏂扮増鏈傞噸鍚數鑴戝悗锛屽惎鐢╓in鍐呯疆鐨凩inux鍔熻兘锛岄氳繃鈥滄帶鍒堕潰鏉库濅腑鐨勨淲indows鍔熻兘鈥濇潵瀹夎铏氭嫙鏈虹洃鎺х▼搴忓钩鍙般佽櫄鎷熸満...
绛旓細涓嶈繃涓嶉渶瑕佽繖涔堥夯鐑︼紝鏈夊己浜哄凡缁忕紪璇戝ソ浜嗗甫aufs妯″潡鐨勫唴鏍革紝瑙佽繖閲孖nstalling docker.io on centos 6.4 (64-bit)1.1 鍙栨秷selinux锛屽洜涓哄畠浼氬共鎵發xc鐨勬甯稿姛鑳 sudo vim /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted 1.2 瀹夎 Fedora EPEL sudo yum install http://ftp.riken.jp/...
绛旓細2. 瀹夎 Boot2Docker 鐜板湪鎴戜滑杩愯瀹夎鏂囦欢锛屽畠浼氬畨瑁 Window Docker 瀹㈡埛绔佺敤浜 Windows 鐨 Git(MSYS-git)銆乂irtualBox銆丅oot2Docker Linux ISO 浠ュ強 Boot2Docker 绠$悊宸ュ叿锛岃繖浜涘浜庡紑绠卞嵆鐢ㄥ湴杩愯鍏ㄥ姛鑳鐨 Docker 寮曟搸閮借嚦鍏抽噸瑕併3. 杩愯 Boot2Docker 瀹夎瀹屾垚蹇呰鐨勭粍浠朵箣鍚庯紝鎴戜滑浠庢闈笂鐨勨...
绛旓細铏氭嫙鏈鸿繍琛岀殑鏄竴涓畬鎴愮殑鎿嶄綔绯荤粺锛岄氳繃铏氭嫙鏈虹鐞嗙▼搴忓涓绘満璧勬簮杩涜铏氭嫙璁块棶锛岀浉姣斾箣涓嬮渶瑕佺殑璧勬簮鏇村銆傚弬鑰冿細 https://www.cnblogs.com/codingbit/p/install-docker-in-ubuntu.html Linux鐗堟湰CentOS7 浣跨敤鍔犻熷櫒鍙互鎻愬崌鑾峰彇Docker瀹樻柟闀滃儚鐨勯熷害锛屼笅闈娇鐢 闃块噷浜戦暅鍍 杩涜鍔犻熴 閫氳繃淇敼daemon閰嶇疆...
绛旓細sudo systemctl start docker 骞跺皢Docker璁剧疆涓哄紑鏈哄惎鍔細bash sudo systemctl enable docker 鍥涖侀獙璇瀹夎 杩愯浠ヤ笅鍛戒护浠ラ獙璇丏ocker鏄惁鎴愬姛瀹夎骞惰繍琛岋細bash docker run hello-world 濡傛灉鐪嬪埌娆㈣繋淇℃伅锛岃鏄嶥ocker宸叉垚鍔熷畨瑁呭苟鍙互杩愯瀹瑰櫒銆傝娉ㄦ剰锛屼互涓婃楠ゅ亣璁炬偍宸茬粡鐔熸倝Linux绯荤粺鐨鍩烘湰鎿嶄綔锛屽苟涓斿叿澶囦竴瀹氱殑...