zoukankan      html  css  js  c++  java
  • 24 week 4 安装 docker

    安装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
  • 相关阅读:
    洛谷 P1337 [JSOI2004]平衡点 / 吊打XXX 解题报告
    牛客练习赛 小D的剑阵 解题报告
    牛客练习赛 小A与最大子段和 解题报告
    牛客练习赛 小D的Lemon 解题报告
    牛客练习赛 小A与任务 解题报告
    洛谷 P1452 Beauty Contest 解题报告
    洛谷 P4100 [HEOI2013]钙铁锌硒维生素 解题报告
    【模板】矩阵求逆
    洛谷 P4097 [HEOI2013]Segment 解题报告
    连接数据库的增删改查
  • 原文地址:https://www.cnblogs.com/PoeticalJustice/p/9498259.html
Copyright © 2011-2022 走看看