返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
Linux

Manjaro-Docker Installation Notes

Manjaro's official repositories already include docker, so you can just install it directly. sudo pacman -S docker Enable the docker service sudo systemctl start docker Set it to start on boot sudo systemctl enable docker Docker installed this way can only be used by the root user by default; we need to add the current user to the docker group. # If there is not yet a docker grou

曦远 (DealiAxy)约 2 分钟

Manjaro's official repositories already include docker, so you can just install it directly.

sudo pacman -S docker

Enable the docker service

sudo systemctl start docker

Set it to start on boot

sudo systemctl enable docker

Docker installed this way can only be used by the root user by default; we need to add the current user to the docker group.

# 如果还没有 docker group 就添加一个
sudo groupadd docker

# 将自己的登录名(${USER} )加入该 group 内。然后退出并重新登录就生效啦
sudo gpasswd -a ${USER} docker

# 重启 docker 服务
sudo systemctl restart docker

# 切换当前会话到新 group 或者重启 X 会话
# 注意,这一步是必须的,否则因为 groups 命令获取到的是缓存的组信息,刚添加的组信息未能生效,所以 docker images 执行时同样有错。
newgrp - docker
OR
pkill X

_EOF_

Manjaro-Docker Installation Notes

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

CentOS6安装Nginx,Linux编译安装Nginx

前言 最近笔者把一个django项目部署到一个新的服务器上,而这个服务器给的是CentOS6版本的系统,官方源很旧,yum管理器被运维搞坏了,没办法加载epel源,所以想要用nginx就只能自己编译安装咯~ 下载nginx代码 首先到Nginx的官网下载安装文件。 链接:http://nginx.org/ 我用的版本是:nginx-1.12.1.tar.gz 安装编译所需环境 安装gcc 安装 n

2022-06-17 · Linux · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…