安装docker

出现问题

解决办法https://blog.csdn.net/VOlsenBerg/article/details/70140211

发现链接超时,然后就https://blog.csdn.net/mingmingysm/article/details/81084313

发现还是超时https://linux.cn/article-9223-1.html

那么就设置访问某个网站 我们通过代理来访问 再试试

还是不行,额。还是https://blog.csdn.net/qq_33951308/article/details/81140922

安装完以后 我们在运行一个命令

这样我们就不能每次都带上sudo才能运行了 方便

https://www.jianshu.com/p/95e397570896

han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/images/json: dial unix /var/run/docker.sock: connect: permission denied
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ sudo groupadd docker
groupadd: group 'docker' already exists
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ sudo gpasswd -a ${USER} docker
Adding user han to group docker
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ sudo service docker restart
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/images/json: dial unix /var/run/docker.sock: connect: permission denied
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ newgrp - docker
han@han-VirtualBox:~$ cd Projects/
han@han-VirtualBox:~/Projects$ cd BittigerCS503/
han@han-VirtualBox:~/Projects/BittigerCS503$ cd week4
han@han-VirtualBox:~/Projects/BittigerCS503/week4$ cd executor/
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
han@han-VirtualBox:~/Projects/BittigerCS503/week4/executor$

免sudo

24 week 4 安装 docker的更多相关文章

  1. Ubuntu 14.04 LTS 安装Docker

    Docker官方是有很详细的安装文档(https://docs.docker.com/engine/installation/ubuntulinux/),这里做了一个Ubuntu 14.04 LTS中 ...

  2. CentOS 7.2 安装 Docker 1.12.3 版

    本文出自http://www.cnblogs.com/scoter2008 1.强大的官方文档 https://docs.docker.com/engine/installation/linux/ce ...

  3. Ubunu下安装Docker

    安装Docker步骤如下: sudo apt-get update sudo apt-get install apt-transport-https sudo apt-key adv --keyser ...

  4. 升级linux内核(2.6.32->3.10.81),安装docker

    1.内核升级环境准备 #查看已经安装的和未安装的软件包组,来判断我们是否安装了相应的开发环境和开发库: yum grouplist #一般是安装这两个软件包组,这样做会确定你拥有编译时所需的一切工具 ...

  5. Centos7安装Docker 基于Dockerfile 搭建httpd运行环境

    Centos7安装Docker 基于Dockerfile 搭建httpd运行环境 docker docker搭建 docker build 本文档完成目标内容如下 使用Docker搭建http服务器一 ...

  6. Docker - 在Windows7中安装Docker

    安装docker 1 - Virtualization Support Check whether virtualization support is enabled at BIOS via HAV ...

  7. Docker学习笔记1:CentOS7 下安装Docker

    本文内容摘自官网:https://docs.docker.com/engine/installation/linux/centos/#/create-a-docker-group 注:本文是介绍Lin ...

  8. nginx做代理安装docker

    1.环境 服务器IP 服务用途 是否能 联网 192.168.126.128 docker服务器(简称B服务器) 不能 192.168.126.130 nginx服务器(简称A服务器) 能 2.背景 ...

  9. Windows server 2016安装Docker EE

    Windows server 2016安装Docker EE 下载 windows server 2016 180天评估版本. 地址:https://www.microsoft.com/en-us/e ...

随机推荐

  1. h5标签兼容

    <!--[if lt IE 9]> <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.js"> ...

  2. 第2章 GNS3和PacketTracer网络模拟器(1)_GNS3概述

    1. 安装和配置GNS3 1.1 GNS3概述 (1)GNS3是一款具有图形化界面,可运行在多平台(包括Windows.Linux.Mac OS等)上面的网络虚拟软件. (2)可以在虚拟环境中运行Ci ...

  3. mysql定时备份

    1.创建备份DB的脚本 python版本的脚本 db_backup.py import os password='df' os.system('mysqldump -uroot -p{} fwss & ...

  4. Java远程通讯技术及原理分析

    在分布式服务框架中,一个最基础的问题就是远程服务是怎么通讯的,在Java领域中有很多可实现远程通讯的技术,例如:RMI.MINA.ESB.Burlap.Hessian.SOAP.EJB和JMS等,这些 ...

  5. vue-demo

    github地址:  https://github.com/TingtingYin/vue-demo

  6. TessorFlow学习 之 神经网络的构建

    1.建立一个神经网络添加层 输入值.输入的大小.输出的大小和激励函数 学过神经网络的人看下面这个图就明白了,不懂的去看看我的另一篇博客 def add_layer(inputs , in_size , ...

  7. spring初始化相关

    获取applicationContext implements ApplicationContextAware @Override public void setApplicationContext( ...

  8. [Android]Android布局优化之 ViewStub

    转载请标注:转载于http://www.cnblogs.com/Liuyt-61/p/6602926.html -------------------------------------------- ...

  9. MIME Type和Content-Type

    告知浏览器:资源的媒体类型MIME Type: application/json HTTP协议中的媒体类型,由 Web服务器告知浏览器的,更准确地说,是通过响应头中的Content-Type表示.Co ...

  10. ssh rsa 非对称加密 基本原理

    我们常用的ssh 免密登陆是用了 非对称加密的rsa算法(最为常用),与对称加密的相比会慢一些,但是更安全.秘钥长度超过768位无法破解. 默认长度是2048位(无法破解,非常安全) ssh-keyg ...