1、安装docker、portainer
centos7安装docker以及搭建portainer可视化UI_Sir_小三的博客
https://blog.csdn.net/qq_42962779/article/details/104666070
Xshell 6 (Build 0197)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[C:\~]$
Connecting to 10.0.0.79:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Wed Mar 17 20:09:34 2021 from 10.0.0.23
[root@localhost ~]# whereis docker
docker:[root@localhost ~]# yum install -y yum-utils device-mapper-persistent-data lvm2
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.2 kB 00:00:00
* base: mirrors.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
mysql57-community | 2.6 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(2/2): epel/x86_64/primary_db | 6.9 MB 00:00:13
正在解决依赖关系
--> 正在检查事务
---> 软件包 device-mapper-persistent-data.x86_64.0.0.7.3-3.el7 将被 升级
---> 软件包 device-mapper-persistent-data.x86_64.0.0.8.5-3.el7_9.2 将被 更新
---> 软件包 lvm2.x86_64.7.2.02.180-8.el7 将被 升级
---> 软件包 lvm2.x86_64.7.2.02.187-6.el7_9.3 将被 更新
--> 正在处理依赖关系 lvm2-libs = 7:2.02.187-6.el7_9.3,它被软件包 7:lvm2-2.02.187-6.el7_9.3.x86_64 需要
---> 软件包 yum-utils.noarch.0.1.1.31-50.el7 将被 升级
---> 软件包 yum-utils.noarch.0.1.1.31-54.el7_8 将被 更新
--> 正在检查事务
---> 软件包 lvm2-libs.x86_64.7.2.02.180-8.el7 将被 升级
---> 软件包 lvm2-libs.x86_64.7.2.02.187-6.el7_9.3 将被 更新
--> 正在处理依赖关系 device-mapper-event = 7:1.02.170-6.el7_9.3,它被软件包 7:lvm2-libs-2.02.187-6.el7_9.3.x86_64 需要
--> 正在检查事务
---> 软件包 device-mapper-event.x86_64.7.1.02.149-8.el7 将被 升级
---> 软件包 device-mapper-event.x86_64.7.1.02.170-6.el7_9.3 将被 更新
--> 正在处理依赖关系 device-mapper-event-libs = 7:1.02.170-6.el7_9.3,它被软件包 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 需要
--> 正在处理依赖关系 device-mapper = 7:1.02.170-6.el7_9.3,它被软件包 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 需要
--> 正在检查事务
---> 软件包 device-mapper.x86_64.7.1.02.149-8.el7 将被 升级
--> 正在处理依赖关系 device-mapper = 7:1.02.149-8.el7,它被软件包 7:device-mapper-libs-1.02.149-8.el7.x86_64 需要
---> 软件包 device-mapper.x86_64.7.1.02.170-6.el7_9.3 将被 更新
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.149-8.el7 将被 升级
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.170-6.el7_9.3 将被 更新
--> 正在检查事务
---> 软件包 device-mapper-libs.x86_64.7.1.02.149-8.el7 将被 升级
---> 软件包 device-mapper-libs.x86_64.7.1.02.170-6.el7_9.3 将被 更新
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================================================================================================================
正在更新:
device-mapper-persistent-data x86_64 0.8.5-3.el7_9.2 updates 423 k
lvm2 x86_64 7:2.02.187-6.el7_9.3 updates 1.3 M
yum-utils noarch 1.1.31-54.el7_8 base 122 k
为依赖而更新:
device-mapper x86_64 7:1.02.170-6.el7_9.3 updates 297 k
device-mapper-event x86_64 7:1.02.170-6.el7_9.3 updates 192 k
device-mapper-event-libs x86_64 7:1.02.170-6.el7_9.3 updates 191 k
device-mapper-libs x86_64 7:1.02.170-6.el7_9.3 updates 325 k
lvm2-libs x86_64 7:2.02.187-6.el7_9.3 updates 1.1 M
事务概要
========================================================================================================================================================================================================================================
升级 3 软件包 (+5 依赖软件包)
总下载量:3.9 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/8): device-mapper-1.02.170-6.el7_9.3.x86_64.rpm | 297 kB 00:00:01
(2/8): device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64.rpm | 191 kB 00:00:01
(3/8): device-mapper-event-1.02.170-6.el7_9.3.x86_64.rpm | 192 kB 00:00:01
(4/8): device-mapper-libs-1.02.170-6.el7_9.3.x86_64.rpm | 325 kB 00:00:02
(5/8): lvm2-libs-2.02.187-6.el7_9.3.x86_64.rpm | 1.1 MB 00:00:03
(6/8): device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64.rpm | 423 kB 00:00:05
(7/8): lvm2-2.02.187-6.el7_9.3.x86_64.rpm | 1.3 MB 00:00:06
(8/8): yum-utils-1.1.31-54.el7_8.noarch.rpm | 122 kB 00:00:05
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 505 kB/s | 3.9 MB 00:00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : 7:device-mapper-1.02.170-6.el7_9.3.x86_64 1/16
正在更新 : 7:device-mapper-libs-1.02.170-6.el7_9.3.x86_64 2/16
正在更新 : 7:device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64 3/16
正在更新 : 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 4/16
正在更新 : 7:lvm2-libs-2.02.187-6.el7_9.3.x86_64 5/16
正在更新 : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 6/16
正在更新 : 7:lvm2-2.02.187-6.el7_9.3.x86_64 7/16
正在更新 : yum-utils-1.1.31-54.el7_8.noarch 8/16
清理 : 7:lvm2-2.02.180-8.el7.x86_64 9/16
清理 : yum-utils-1.1.31-50.el7.noarch 10/16
清理 : 7:lvm2-libs-2.02.180-8.el7.x86_64 11/16
清理 : 7:device-mapper-event-1.02.149-8.el7.x86_64 12/16
清理 : 7:device-mapper-event-libs-1.02.149-8.el7.x86_64 13/16
清理 : 7:device-mapper-1.02.149-8.el7.x86_64 14/16
清理 : 7:device-mapper-libs-1.02.149-8.el7.x86_64 15/16
清理 : device-mapper-persistent-data-0.7.3-3.el7.x86_64 16/16
验证中 : 7:lvm2-2.02.187-6.el7_9.3.x86_64 1/16
验证中 : 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 2/16
验证中 : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 3/16
验证中 : 7:device-mapper-libs-1.02.170-6.el7_9.3.x86_64 4/16
验证中 : 7:device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64 5/16
验证中 : 7:lvm2-libs-2.02.187-6.el7_9.3.x86_64 6/16
验证中 : 7:device-mapper-1.02.170-6.el7_9.3.x86_64 7/16
验证中 : yum-utils-1.1.31-54.el7_8.noarch 8/16
验证中 : device-mapper-persistent-data-0.7.3-3.el7.x86_64 9/16
验证中 : yum-utils-1.1.31-50.el7.noarch 10/16
验证中 : 7:lvm2-libs-2.02.180-8.el7.x86_64 11/16
验证中 : 7:device-mapper-1.02.149-8.el7.x86_64 12/16
验证中 : 7:device-mapper-libs-1.02.149-8.el7.x86_64 13/16
验证中 : 7:device-mapper-event-1.02.149-8.el7.x86_64 14/16
验证中 : 7:device-mapper-event-libs-1.02.149-8.el7.x86_64 15/16
验证中 : 7:lvm2-2.02.180-8.el7.x86_64 16/16
更新完毕:
device-mapper-persistent-data.x86_64 0:0.8.5-3.el7_9.2 lvm2.x86_64 7:2.02.187-6.el7_9.3 yum-utils.noarch 0:1.1.31-54.el7_8
作为依赖被升级:
device-mapper.x86_64 7:1.02.170-6.el7_9.3 device-mapper-event.x86_64 7:1.02.170-6.el7_9.3 device-mapper-event-libs.x86_64 7:1.02.170-6.el7_9.3 device-mapper-libs.x86_64 7:1.02.170-6.el7_9.3 lvm2-libs.x86_64 7:2.02.187-6.el7_9.3
完毕!
[root@localhost ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
已加载插件:fastestmirror, langpacks
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost ~]# yum makecache fast
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.2 kB 00:00:00
* base: mirrors.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
mysql57-community | 2.6 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): docker-ce-stable/7/x86_64/updateinfo | 55 B 00:00:00
(2/2): docker-ce-stable/7/x86_64/primary_db | 58 kB 00:00:00
元数据缓存已建立
[root@localhost ~]# yum -y install docker-ce
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker-ce.x86_64.3.20.10.5-3.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 3:docker-ce-20.10.5-3.el7.x86_64 需要
--> 正在处理依赖关系 containerd.io >= 1.4.1,它被软件包 3:docker-ce-20.10.5-3.el7.x86_64 需要
--> 正在处理依赖关系 docker-ce-cli,它被软件包 3:docker-ce-20.10.5-3.el7.x86_64 需要
--> 正在处理依赖关系 docker-ce-rootless-extras,它被软件包 3:docker-ce-20.10.5-3.el7.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
---> 软件包 containerd.io.x86_64.0.1.4.4-3.1.el7 将被 安装
---> 软件包 docker-ce-cli.x86_64.1.20.10.5-3.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.20.10.5-3.el7 将被 安装
--> 正在处理依赖关系 fuse-overlayfs >= 0.7,它被软件包 docker-ce-rootless-extras-20.10.5-3.el7.x86_64 需要
--> 正在处理依赖关系 slirp4netns >= 0.4,它被软件包 docker-ce-rootless-extras-20.10.5-3.el7.x86_64 需要
--> 正在检查事务
---> 软件包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安装
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.2)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.0)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3()(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
--> 正在检查事务
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================================================================================================================
正在安装:
docker-ce x86_64 3:20.10.5-3.el7 docker-ce-stable 27 M
为依赖而安装:
container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k
containerd.io x86_64 1.4.4-3.1.el7 docker-ce-stable 33 M
docker-ce-cli x86_64 1:20.10.5-3.el7 docker-ce-stable 33 M
docker-ce-rootless-extras x86_64 20.10.5-3.el7 docker-ce-stable 9.1 M
fuse-overlayfs x86_64 0.7.2-6.el7_8 extras 54 k
fuse3-libs x86_64 3.6.1-4.el7 extras 82 k
slirp4netns x86_64 0.4.3-4.el7_8 extras 81 k
事务概要
========================================================================================================================================================================================================================================
安装 1 软件包 (+7 依赖软件包)
总下载量:102 M
安装大小:424 M
Downloading packages:
(1/8): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 40 kB 00:00:00
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-20.10.5-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY=- ] 531 kB/s | 49 MB 00:01:42 ETA
docker-ce-20.10.5-3.el7.x86_64.rpm 的公钥尚未安装
(2/8): docker-ce-20.10.5-3.el7.x86_64.rpm | 27 MB 00:01:34
(3/8): containerd.io-1.4.4-3.1.el7.x86_64.rpm | 33 MB 00:02:12
(4/8): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:01
(5/8): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 82 kB 00:00:02
(6/8): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:01
(7/8): docker-ce-rootless-extras-20.10.5-3.el7.x86_64.rpm | 9.1 MB 00:00:33
(8/8): docker-ce-cli-20.10.5-3.el7.x86_64.rpm | 33 MB 00:01:40
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 538 kB/s | 102 MB 00:03:15
从 https://download.docker.com/linux/centos/gpg 检索密钥
导入 GPG key 0x621E9F35:
用户ID : "Docker Release (CE rpm) <docker@docker.com>"
指纹 : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
来自 : https://download.docker.com/linux/centos/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 1/8
setsebool: SELinux is disabled.
正在安装 : containerd.io-1.4.4-3.1.el7.x86_64 2/8
正在安装 : slirp4netns-0.4.3-4.el7_8.x86_64 3/8
正在安装 : fuse3-libs-3.6.1-4.el7.x86_64 4/8
正在安装 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 5/8
正在安装 : 1:docker-ce-cli-20.10.5-3.el7.x86_64 6/8
正在安装 : docker-ce-rootless-extras-20.10.5-3.el7.x86_64 7/8
正在安装 : 3:docker-ce-20.10.5-3.el7.x86_64 8/8
验证中 : 1:docker-ce-cli-20.10.5-3.el7.x86_64 1/8
验证中 : fuse3-libs-3.6.1-4.el7.x86_64 2/8
验证中 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 3/8
验证中 : slirp4netns-0.4.3-4.el7_8.x86_64 4/8
验证中 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 5/8
验证中 : 3:docker-ce-20.10.5-3.el7.x86_64 6/8
验证中 : docker-ce-rootless-extras-20.10.5-3.el7.x86_64 7/8
验证中 : containerd.io-1.4.4-3.1.el7.x86_64 8/8
已安装:
docker-ce.x86_64 3:20.10.5-3.el7
作为依赖被安装:
container-selinux.noarch 2:2.119.2-1.911c772.el7_8 containerd.io.x86_64 0:1.4.4-3.1.el7 docker-ce-cli.x86_64 1:20.10.5-3.el7 docker-ce-rootless-extras.x86_64 0:20.10.5-3.el7 fuse-overlayfs.x86_64 0:0.7.2-6.el7_8
fuse3-libs.x86_64 0:3.6.1-4.el7 slirp4netns.x86_64 0:0.4.3-4.el7_8
完毕!
[root@localhost ~]# yum -y install docker-ce
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
软件包 3:docker-ce-20.10.5-3.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@localhost ~]# systemctl start docker
[root@localhost ~]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since 四 2021-03-18 10:19:58 CST; 6s ago
Docs: https://docs.docker.com
Main PID: 75153 (dockerd)
Tasks: 10
Memory: 45.0M
CGroup: /system.slice/docker.service
└─75153 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
3月 18 10:19:57 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:57.463595989+08:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
3月 18 10:19:57 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:57.463623962+08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] ...>}" module=grpc
3月 18 10:19:57 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:57.463645716+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
3月 18 10:19:57 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:57.501381304+08:00" level=info msg="Loading containers: start."
3月 18 10:19:58 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:58.100079703+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be us...red IP address"
3月 18 10:19:58 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:58.225075484+08:00" level=info msg="Loading containers: done."
3月 18 10:19:58 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:58.250995308+08:00" level=info msg="Docker daemon" commit=363e9a8 graphdriver(s)=overlay2 version=20.10.5
3月 18 10:19:58 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:58.251112062+08:00" level=info msg="Daemon has completed initialization"
3月 18 10:19:58 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
3月 18 10:19:58 localhost.localdomain dockerd[75153]: time="2021-03-18T10:19:58.312163254+08:00" level=info msg="API listen on /var/run/docker.sock"
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@localhost ~]# docker pull portainer/portainer
Using default tag: latest
latest: Pulling from portainer/portainer
d1e017099d17: Pull complete
717377b83d5c: Pull complete
Digest: sha256:f8c2b0a9ca640edf508a8a0830cf1963a1e0d2fd9936a64104b3f658e120b868
Status: Downloaded newer image for portainer/portainer:latest
docker.io/portainer/portainer:latest
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
portainer/portainer latest 62771b0b9b09 7 months ago 79.1MB
[root@localhost ~]# docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer_data:/data 10383f5b5720
Unable to find image '10383f5b5720:latest' locally
docker: Error response from daemon: pull access denied for 10383f5b5720, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
[root@localhost ~]# ^C
[root@localhost ~]# docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer_data:/data docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer_data:/data 10383f5b5720
Unable to find image 'docker:latest' locally
^C
[root@localhost ~]# docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer_data:/data 62771b0b9b09
bce6b03b4f82f4c8ab79017681f94a94ba66e291bb3e9aedaadef688254697cc
[root@localhost ~]# docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bce6b03b4f82 62771b0b9b09 "/portainer" 13 seconds ago Up 11 seconds 0.0.0.0:9000->9000/tcp portainer
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bce6b03b4f82 62771b0b9b09 "/portainer" 16 seconds ago Up 14 seconds 0.0.0.0:9000->9000/tcp portainer
[root@localhost ~]# docker run -itd --name urlos --restart always -p 9968:9968 -p 9966:9966 -v /data/urlos:/data/urlos urlos/urlos
Unable to find image 'urlos/urlos:latest' locally
latest: Pulling from urlos/urlos
d519e2592276: Pull complete
d22d2dfcfa9c: Pull complete
b3afe92c540b: Pull complete
0a12cf65874f: Pull complete
a20602cd9445: Pull complete
3e92bdf6a658: Pull complete
ed7d46f87c1f: Pull complete
06b38fc59f54: Pull complete
Digest: sha256:22466cdd477267c2ee74ad90b88d24e92158ca1260e0524d1d7bf59322e9f1fb
Status: Downloaded newer image for urlos/urlos:latest
37c699062d8d8bb3e56dd58095562399924ac727245a37ebfeee603c51814d39
[root@localhost ~]#
2、安装chrome浏览器
[root@skycaiji001 ~]# google-chrome-stable --no-sandbox --headless --disable-gpu --screenshot https://www.baidu.com/
[0329/101048.035635:WARNING:headless_browser_main_parts.cc(83)] Cannot create Pref Service with no user data dir.
[0329/101051.782237:INFO:CONSOLE(203)] "A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/polyfill_9354efa.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: https://www.baidu.com/ (203)
[0329/101051.783921:INFO:CONSOLE(203)] "A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/polyfill_9354efa.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: https://www.baidu.com/ (203)
[0329/101051.783957:INFO:CONSOLE(203)] "A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/js/all_async_search_1646f36.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: https://www.baidu.com/ (203)
[0329/101052.068252:INFO:CONSOLE(211)] "每一个星球都有一个驱动核心,
每一种思想都有影响力的种子。
感受世界的温度,
年轻的你也能成为改变世界的动力,
百度珍惜你所有的潜力。
[root@skycaiji001 ~]# chrome -version
Google Chrome 89.0.4389.90
3、蓝天采集器
URLOS
http://10.0.0.79:9968/
urlos
urlos
蓝天采集器
http://10.0.0.79:8080/index.php
admin
123456
蓝天采集器2.3.3使用手册
http://www.skycaiji.com/manual