ls -l docker
cp docker/* /usr/bin/
[root@localhost local]# tar xvf docker-19.03.9.tgz
docker/
docker/docker-init
docker/runc
docker/docker
docker/docker-proxy
docker/containerd
docker/ctr
docker/dockerd
docker/containerd-shim
[root@localhost local]# ls -l docker
total 195504
-rwxr-xr-x. 1 lr lr 32751272 May 14 17:29 containerd
-rwxr-xr-x. 1 lr lr 6012928 May 14 17:29 containerd-shim
-rwxr-xr-x. 1 lr lr 18194536 May 14 17:29 ctr
-rwxr-xr-x. 1 lr lr 61113382 May 14 17:29 docker
-rwxr-xr-x. 1 lr lr 68874208 May 14 17:29 dockerd
-rwxr-xr-x. 1 lr lr 708616 May 14 17:29 docker-init
-rwxr-xr-x. 1 lr lr 2928514 May 14 17:29 docker-proxy
-rwxr-xr-x. 1 lr lr 9600696 May 14 17:29 runc
[root@localhost local]# mv docker/* /usr/bin/
[root@localhost local]#
vim /etc/systemd/system/docker.service
添加文件内容:[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
# Uncomment TasksMax if your systemd version supports it.
# Only systemd 226 and above support this version.
#TasksMax=infinity
TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
# restart the docker process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
chmod +x /etc/systemd/system/docker.service
systemctl daemon-reload
#开机启动systemctl enable docker.service
启动dockersystemctl start docker
例1.使用原版镜像进行安装系统,到达输入"用户名"时,不要输入,按下Ctrl+Shift+F3快捷键组合,即可直接进入"审核模式",到达桌面后会自动弹出sysprep.exe运行窗口。在这个模式(默认为管理员账户)下可以进行安装软件,驱动等。
例2.在安装完成的系统里,运行sysprep.exe,选择"进入审核模式",重启后和例1情况一样。
例3.在安装完成的系统里,运行sysprep.exe,选择"进入系统全新体验(OOBE)",重启后又到达了输入"用户名"的地方。
简要说明:OEM厂商在预装系统时进入"审核模式",安装软件及驱动等,作为测试。通常购买品牌电脑时,第一次开机会出现:正在为首次使用系统做准备。。。然后设置用户名等,其实系统早已安装到位,就差最后一步,通过上面的说明应该很清楚这是怎么做到的了。通常我们在做封装系统时,都是选用"进入系统全新体验(OOBE)","审核模式"对于普通用户来说没有必要也没有什么特别的好处,相反每次开机还有窗口弹出。multipass set client.primary-name=first
$ multipass start
Launched: first
Mounted '/home/ubuntu' into 'first:Home'
$ multipass stop
$ multipass launch eoan
Launched: calm-chimaera
$ multipass set client.primary-name=calm-chimaera
$ multipass suspend
$ multipass set client.primary-name=chopin
$ multipass start
Launched: chopin
Mounted '/home/ubuntu' into 'chopin:Home'
$ multipass list
Name State IPv4 Image
chopin Running 10.122.139.63 Ubuntu 18.04 LTS
calm-chimaera Suspended -- Ubuntu 19.04
first Stopped -- Ubuntu 18.04 LTS
multipass launch --name foo
Run commands in that instance, try running bash (logout or ctrl-d to quit)multipass exec foo -- lsb_release -a
Pass a cloud-init metadata file to an instance on launch. See using cloud-init with multipass for more detailsmultipass launch -n bar --cloud-init cloud-config.yaml
See your instancesmultipass list
Stop and start instancesmultipass stop foo bar
multipass start foo
Clean up what you don't needmultipass delete bar
multipass purge
Find alternate images to launch with multipassmultipass find
Get helpmultipass help
multipass help <command>
Now don't forget you still have 'foo' running. To learn more about Multipass keepsudo snap install multipass
Install Multipass on MacOSsudo multipass set local.driver=virtualbox
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
也可直接写在html的th, .table, td标签的style中,如下:<th style="vertical-align: middle !important;text-align: center;">xxx</th>
<td style="vertical-align: middle !important;text-align: center;">xxx</td>
这样就能达到水平且垂直居中的效果了