manjaro/archlinux下学习和使用docker笔记01
安装docker
sudo pacman -Sy docker
设置好开机启动
sudo systemctl enable docker
设置好无需sudo
sudo groupadd docker sudo usermod -aG docker $(whoami)
sudo vim /etc/docker/daemon.json
添加内容
{ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"] "insecure-registries": [ "my.registry.example.com:8443" ] }
restart docker.service
sudo systemctl restart docker
第一个为基于docker的gui安装
docker search ui docker pull docker.io/uifd/ui-for-docker docker run -d -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock uifd/ui-for-docker
注意这里是每次手动启动,如果重启docker就要用上述最后一条命令启动一次,重启系统自然是重启了本机所有docker了。
命令为
pa lazydocker
效果图为
参考1
https://blog.csdn.net/weixin_39172380/article/details/89845825
参考2
https://hub.daocloud.io/repos/4983bbad-a6eb-46c6-abb3-f8e3ff35b2c8
参考3
https://wiki.archlinux.org/index.php/Systemd
参考4
https://blog.csdn.net/qq_43390313/article/details/106331838?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-1&spm=1001.2101.3001.4242
参考5
https://cloud.tencent.com/developer/article/1745918