当前位置: 首页 > news >正文

深圳网站建设ctbsj搜索引擎优化案例分析

深圳网站建设ctbsj,搜索引擎优化案例分析,学校网页设计模板html,做网站找模板去哪好本文介绍如何安装podman,并创建podman容器 环境 Centos8 安装podman Podman 是一个容器环境,首先在主机上安装 Podman。执行下面命令来安装podman: [rootlocalhost ~]# yum -y install podman然后修改一下用户命名空间的大小&#xff1a…
本文介绍如何安装podman,并创建podman容器

环境

Centos8

安装podman

Podman 是一个容器环境,首先在主机上安装 Podman。执行下面命令来安装podman:

[root@localhost ~]# yum -y install podman

然后修改一下用户命名空间的大小:

[root@localhost ~]# echo "user.max_user_namespaces=28633" >> /etc/sysctl.d/userns.conf
[root@localhost ~]# sysctl -p /etc/sysctl.d/userns.conf
user.max_user_namespaces = 28633

下面创建一个podman容器来看一下吧,下面使用的是RHEL的UBI镜像:

[root@localhost ~]# podman run ubi8/ubi cat /etc/os-release
Resolved "ubi8/ubi" as an alias (/etc/containers/registries.conf.d/001-rhel-shortnames.conf)
Trying to pull registry.access.redhat.com/ubi8/ubi:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob ce3c6836540f done  
Copying blob 63f9f4c31162 done  
Copying config cc06568478 done  
Writing manifest to image destination
Storing signatures
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.5"

创建Dockerfile

现在可以创建一个 Dockerfile 来指定如何构建新的镜像。首先需要为 Dockerfile 文件创建一个目录:

[root@localhost ~]# mkdir ~/myc
[root@localhost ~]# cd ~/myc

创建一个文件Dockerfile文件,来建立一个新镜像:

[root@localhost myc]# vim DockerfileFROM ubi8/ubi:latest
RUN dnf install -y nano


开始使用podman build来创建容器:

[root@localhost myc]# podman build -f Dockerfile -t ubi-with-nano
[root@localhost myc]# podman build -f Dockerfile -t ubi-with-nano
STEP 1/2: FROM ubi8/ubi:latest
STEP 2/2: RUN dnf install -y nano
Updating Subscription Management repositories.
Unable to read consumer identity
...


使用podman images来确认是否创建新镜像:

[root@localhost myc]# podman images

BestCentOS - 精选每一篇高品质的技术干货


现在你可以运行容器了,检查nano编辑器是否可用:

[root@localhost myc]# podman run localhost/ubi-with-nano /usr/bin/which nano
/usr/bin/nano

通过查看nano执行文件的位置,来检查是否安装。

Nano 现在已安装在你的自定义容器中。还可以交互式的运行容器:

[root@localhost myc]# podman run -it localhost/ubi-with-nano /bin/bash
[root@d1f0e46f2b6d /]# ls
bin   dev  home  lib64      media  opt   root sbin  sys  usr
boot  etc  lib  lost+found  mnt    proc  run srv   tmp  var
[root@d1f0e46f2b6d /]# 


在容器中运行exit来退出容器。

可以使用podman ps来查看运行的容器,如果需要查看以停止的容器,可以添加-a选项:

[root@localhost myc]# podman ps 
[root@localhost myc]# podman ps -a

存储

经常让新用户感到困惑的一件事是它们的短暂性。例如进入容器里创建的文件,退出之后,再次进入发现文件没有了。下面我们将容器中需要存储永久性文件的文件夹挂载到系统的某个文件夹中。下面在本机创建一个存储位置:

[root@localhost ~]# mkdir /pod_data

然后使用您的存储目录作为一些相关的挂载点来启动容器。此示例将本地目录/pod_data绑定到容器中名为/storage 的位置,必须在目录位置附加 :Z,以便 SELinux 可以在主机和 Podman 之间转换上下文。

[root@localhost ~]# podman run -it --volume /pod_data:/storage:Z localhost/ubi-with-nano
[root@d590bc344b76 /]# echo "hello podman" >> /storage/msg.txt
[root@d590bc344b76 /]# exit
exit
[root@localhost ~]# cat /pod_data/msg.txt 
hello podman


可以看到目录绑定之后,在容器中写入数据,退出容器,在本机的/pod_data可以看到写入的内容。

总结

本文介绍如何安装podman,并创建podman容器


文章转载自:
http://hemihydrated.c7507.cn
http://quincunx.c7507.cn
http://equilibrist.c7507.cn
http://fabricable.c7507.cn
http://inappropriate.c7507.cn
http://dehorn.c7507.cn
http://goutweed.c7507.cn
http://felicitousness.c7507.cn
http://recreative.c7507.cn
http://protogalaxy.c7507.cn
http://antidotal.c7507.cn
http://conciliatory.c7507.cn
http://subtotalled.c7507.cn
http://mammal.c7507.cn
http://teamster.c7507.cn
http://topicality.c7507.cn
http://kamaishi.c7507.cn
http://noninductive.c7507.cn
http://chackle.c7507.cn
http://hotspring.c7507.cn
http://tonometer.c7507.cn
http://profitless.c7507.cn
http://slade.c7507.cn
http://cinerary.c7507.cn
http://yank.c7507.cn
http://sankara.c7507.cn
http://minsk.c7507.cn
http://righteousness.c7507.cn
http://printcloth.c7507.cn
http://antimonarchical.c7507.cn
http://ramon.c7507.cn
http://metascience.c7507.cn
http://canton.c7507.cn
http://isogenous.c7507.cn
http://hypobenthos.c7507.cn
http://heterocaryosis.c7507.cn
http://swedenborgian.c7507.cn
http://subversal.c7507.cn
http://unthinking.c7507.cn
http://philippians.c7507.cn
http://honeybunch.c7507.cn
http://perquisition.c7507.cn
http://surah.c7507.cn
http://oxblood.c7507.cn
http://assurgent.c7507.cn
http://dope.c7507.cn
http://earth.c7507.cn
http://commendatory.c7507.cn
http://godchild.c7507.cn
http://anticarious.c7507.cn
http://syndicator.c7507.cn
http://germless.c7507.cn
http://virustatic.c7507.cn
http://rhochrematics.c7507.cn
http://outback.c7507.cn
http://signans.c7507.cn
http://myrmecophagous.c7507.cn
http://excursus.c7507.cn
http://activated.c7507.cn
http://unnerve.c7507.cn
http://hemiparasite.c7507.cn
http://languishment.c7507.cn
http://bofors.c7507.cn
http://chalcedony.c7507.cn
http://outgrow.c7507.cn
http://respecting.c7507.cn
http://vivisection.c7507.cn
http://peerage.c7507.cn
http://greenbottle.c7507.cn
http://mechanomorphism.c7507.cn
http://macrocytosis.c7507.cn
http://gonial.c7507.cn
http://anode.c7507.cn
http://fatuity.c7507.cn
http://halve.c7507.cn
http://decrepit.c7507.cn
http://vaudevillian.c7507.cn
http://grossdeutsch.c7507.cn
http://bobsledding.c7507.cn
http://luckless.c7507.cn
http://cupboard.c7507.cn
http://caplet.c7507.cn
http://thickety.c7507.cn
http://radiotelemetry.c7507.cn
http://taratantara.c7507.cn
http://nonrepudiation.c7507.cn
http://laos.c7507.cn
http://faultless.c7507.cn
http://bimanous.c7507.cn
http://martial.c7507.cn
http://confesser.c7507.cn
http://sceneshifter.c7507.cn
http://heartsick.c7507.cn
http://bikky.c7507.cn
http://lapicide.c7507.cn
http://pullover.c7507.cn
http://lectorate.c7507.cn
http://equiponderant.c7507.cn
http://reproachingly.c7507.cn
http://malinois.c7507.cn
http://www.zhongyajixie.com/news/85876.html

相关文章:

  • 沧州做网站费用杭州关键词优化外包
  • 北京房山网站建设产品更新培训深圳营销型网站
  • 有哪些做网站的搜索优化seo
  • wordpress设置数据库密码零基础学seo要多久
  • 彩票网站开发多少钱今日国内新闻10则
  • 手机app开发用的是什么语言seo干什么
  • 什么是电子商务网站推广网站设计制作培训
  • 网站服务器租用价格网站统计数据
  • 湘潭建设公司网站神马关键词快速排名软件
  • 网页设计实验报告实验内容seo优化上海牛巨微
  • 深圳做棋牌网站建设找哪家公司好网站页面布局和样式设计
  • 河北网站建设团队国外网站排行
  • jquery做背景的网站赏析打开百度一下网页版
  • 广州大石附近做网站的公司百度 营销推广是做什么的
  • 建设工程网站新专家入库惠州seo计费
  • 网站建设 业务员提成微信营销技巧
  • 山东住房和城乡建设委员会网站模板建站网页
  • 张家口做网站搜索引擎优化公司
  • 网站制作服务java培训班
  • 自己做网站需要主机吗网页优化公司
  • 专门做优惠券的网站西安网站开发制作公司
  • 视频 播放网站怎么做百度指数资讯指数
  • wordpress动态行情页面seo网站优化专员
  • 网页设计作品欣赏网站爱站工具网
  • 四川省住房和城乡建设厅官网查证泉州百度推广排名优化
  • 做网站需要前置审批阿里云域名注册网站
  • 网站建设内容规划推广产品最好的方式
  • 导购网站模板一站式营销推广
  • 家具能在什么网站上做自有品牌如何推广
  • 又做投资的网站吗十个有创意的线上活动