{"id":443827,"date":"2025-01-02T15:02:25","date_gmt":"2025-01-02T15:02:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443827"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-01-02T15:02:25","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443827","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b 99* \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 Oracle Database 21c Express Edition \u0432\u043d\u0443\u0442\u0440\u0438 Podman \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u041e\u0421<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0b2\/7b9\/92d\/0b27b992d065c1b3974b7b285071e601.jpg\" width=\"819\" height=\"586\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0b2\/7b9\/92d\/0b27b992d065c1b3974b7b285071e601.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u00ab\u0441 \u043d\u0443\u043b\u044f\u00bb \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 Podman. \u0412\u043d\u0443\u0442\u0440\u044c\u00a0\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u00a0\u00ab\u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u0430\u00bb\u00a0\u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Oracle Database 21c Express Edition. \u0418 \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0420\u0415\u0414 \u041e\u0421.<\/p>\n<p>*2 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<\/p>\n<hr\/>\n<p> \u0422\u0430\u043a \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0447\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 docker.io \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0437 <a href=\"https:\/\/hub.docker.com\/r\/gvenzl\/oracle-xe\" rel=\"noopener noreferrer nofollow\">gvenzl\/oracle-xe<\/a> \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430\u043c\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0439?<\/p>\n<ol>\n<li>\n<p>\u042d\u0442\u043e \u043c\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a Podman \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435 \u0438 \u0441\u0440\u0435\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0432 \u0446\u0435\u043b\u043e\u043c, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b;<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0448\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u044f\u0434\u0440\u0430 Linux \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432 \u0438\u043c\u0451\u043d \u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0441\u0435\u043b\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f (\u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 \u00ab\u0441 \u043d\u0443\u043b\u044f\u00bb, \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u0432).<\/p>\n<\/li>\n<\/ol>\n<p> \u041d\u0430\u0447\u043d\u0451\u043c.<\/p>\n<h2>0. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0445\u043e\u0441\u0442<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u041e\u0421 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c:<\/p>\n<pre><code class=\"bash\">dnf search podman podman.x86_64 : Manage Pods, Containers and Container Images dnf install podman<\/code><\/pre>\n<p> \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">uname -r; cat \/etc\/redos-release; podman --version  6.1.52-1.el7.3.x86_64 RED OS release MUROM (7.3.5) DESKTOP podman version 4.9.5<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 subuid:<\/p>\n<pre><code class=\"bash\">usermod --add-subuids 200000-265535 --add-subgids 200000-265535 user<\/code><\/pre>\n<p>\u0433\u0434\u0435 <code>user<\/code> \u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f selinux, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043b\u043e\u0433\u0438. \u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0447\u0442\u043e\u0431\u044b \u0438\u0437 \u043b\u043e\u0433\u043e\u0432 \u0438\u0441\u0447\u0435\u0437\u043b\u0438 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430:<\/p>\n<pre><code class=\"bash\">setsebool -P virt_sandbox_use_netlink 1 setsebool -P domain_kernel_load_modules 1<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u0430\u043a \u044f \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u044c, \u0432\u0442\u043e\u0440\u0430\u044f \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 Oracle Database 21c Express Edition (\u0434\u0430\u043b\u0435\u0435 \u2014 XE). <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u0430\u0432\u0430 \u0440\u0443\u0442\u0430 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Podman\u2019\u0430 \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <code>~\/.config\/containers\/containers.conf<\/code>. \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441:<\/p>\n<pre><code>[containers] tz = \"local\"  # \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/code><\/pre>\n<p>\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 Podman\u2019\u0430 \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435 \u0432 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0430\u0447\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 (\u0432 \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>~\/.local\/<\/code>), \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>~\/.config\/containers\/storage.conf<\/code>:<\/p>\n<pre><code>[storage] driver = \"overlay\" graphroot = \"\/home\/user\/.local\/share\/containers\/storage\" #runroot = ...<\/code><\/pre>\n<p>NOTE: \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043c\u0435\u0442\u043a\u0430\u043c\u0438 selinux \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435: \u0432 <code>man containers-storage.conf<\/code>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0426\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/summary>\n<div class=\"spoiler__content\">\n<blockquote>\n<p>        graphroot=&#187;&#187; <\/p>\n<p>         container storage graph dir (default:  &#171;\/var\/lib\/containers\/storage&#187;) <\/p>\n<p>       Default  directory  to  store all writable content created by container <\/p>\n<p>       storage programs.  The rootless  graphroot  path  supports  environment <\/p>\n<p>       variable  substitutions  (ie. $HOME\/containers\/storage).  When changing <\/p>\n<p>       the graphroot location  on  an  SELINUX  system,  ensure  the  labeling <\/p>\n<p>       matches the default locations labels with the following commands: <\/p>\n<p>              # semanage fcontext -a -e \/var\/lib\/containers\/storage \/NEWSTORAGEPATH <\/p>\n<p>              # restorecon -R -v \/NEWSTORAGEPATH <\/p>\n<p>       In rootless mode you would set <\/p>\n<p>              # semanage fcontext -a -e $HOME\/.local\/share\/containers NEWSTORAGEPATH <\/p>\n<p>              $ restorecon -R -v \/NEWSTORAGEPATH <\/p>\n<\/blockquote>\n<\/div>\n<\/details>\n<h2> 1. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u043e\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u041e\u0421<\/h2>\n<p>\u0421 \u0437\u0430\u043d\u0443\u0434\u043d\u044b\u043c \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u0435\u043b\u044c\u0435. \u0425\u043e\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u043c\u0435\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f Dockerfile \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u044d\u0442\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c. Podman \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442  Dockerfile\u2019\u044b, \u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Containerfile.<\/p>\n<p> \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Containerfile.ol8:<\/p>\n<pre><code>FROM scratch<\/code><\/pre>\n<p> \u041d\u0435\u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u043d\u043e, \u043d\u043e \u043d\u0430\u043c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 XE \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a XE<\/summary>\n<div class=\"spoiler__content\">\n<blockquote>\n<p>Oracle Linux 8.2 with the Unbreakable Enterprise Kernel 6: 5.4.17-2011.1.2.el8uek.x86_64 or later<\/p>\n<p>Oracle Linux 8.2 with the Red Hat Compatible Kernel: 4.18.0-193.19.1.el8_2.x86_64 or later <\/p>\n<p>Oracle Linux 7.6 with the Unbreakable Enterprise Kernel 5: 4.14.35-2025.404.1.el7uek.x86_64 or later<\/p>\n<p>Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 4: 4.1.12-124.53.1.el7uek.x86_64 or later <\/p>\n<p>Red Hat Enterprise Linux 8.2: 4.18.0-193.19.1.el8_2.x86_64 or later <\/p>\n<p>SUSE Linux Enterprise Server 15 SP1: 4.12.14-197.29-default or later  <\/p>\n<p>Review the system requirements section for a list of minimum package requirements.<\/p>\n<\/blockquote>\n<\/div>\n<\/details>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d Oracle Linux 8. \u0418 \u043d\u0430 docker.io \u0435\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 <a href=\"https:\/\/hub.docker.com\/_\/oraclelinux\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b<\/a> \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u041e\u0440\u0430\u043a\u043b\u0430. \u041d\u043e \u043c\u044b \u043f\u043e\u0439\u0434\u0451\u043c, \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u044d\u0442\u0438 \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u043a\u0442\u043e-\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0433\u0434\u0435-\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 Dockerfile. \u041d\u0435\u0434\u043e\u043b\u0433\u0438\u0435 \u043f\u043e\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 <a href=\"https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz\" rel=\"noopener noreferrer nofollow\">oraclelinux-8-amd64-rootfs.tar.xz<\/a>.<\/p>\n<p> \u0418\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 Containerfile.ol8:<\/p>\n<pre><code>FROM scratch  ADD oraclelinux-8-amd64-rootfs.tar.xz \/  RUN --network=host --mount=type=bind,source=.,target=\/host,ro,z \\     dnf install mc nano \/host\/htop-3.2.1-1.el8.x86_64.rpm; \\     rm -rf \/var\/cache\/*; \\     rm -rf \/var\/log\/*; \\     rm -rf \/usr\/lib\/locale\/en_*; \\     rm -rf \/usr\/share\/doc\/*; \\     rm -rf \/usr\/share\/locale\/*\/; \\     rm -rf \/usr\/share\/man\/*; \\     rm -rf \/usr\/share\/licenses\/*  CMD \/usr\/bin\/bash<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0436\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u043c (\u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e mc, nano \u0438 htop). \u0415\u0449\u0451 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442 htop, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <a href=\"https:\/\/pkgs.org\/download\/htop\" rel=\"noopener noreferrer nofollow\">https:\/\/pkgs.org\/download\/htop<\/a> \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0418\u0437 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p> <code>--network=host<\/code> \u2014 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0435\u0442\u044c. \u0418\u0437 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0441\u0438, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438\u0437 \u0445\u043e\u0441\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p><code>--mount=type=bind,source=.,target=\/host,ro,z<\/code> \u2014 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438\u0445 \u0438\u0437 \u043e\u0431\u0440\u0430\u0437\u0430, \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 (<code>z<\/code> \u2014 \u0447\u0442\u043e\u0431\u044b selinux \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043a\u0438);<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0e0\/204\/d9c\/0e0204d9c46509ea4664e55ff7f4ae0e.jpg\" alt=\"\u042d\u0442\u043e \u0448\u0443\u0442\u043a\u0430, \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435\" title=\"\u042d\u0442\u043e \u0448\u0443\u0442\u043a\u0430, \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435\" width=\"1242\" height=\"657\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e0\/204\/d9c\/0e0204d9c46509ea4664e55ff7f4ae0e.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u042d\u0442\u043e \u0448\u0443\u0442\u043a\u0430, \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435<\/figcaption><\/div>\n<\/figure>\n<p> \u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043d\u0435 \u0437\u0430\u0441\u043a\u0443\u0447\u0430\u0442\u044c, \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c Makefile \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Makefile.ol8 (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e):<\/p>\n<pre><code>ol8.tar: Containerfile.ol8 podman image build --squash -t localhost\/ol8:latest -f Containerfile.ol8 touch ol8.tar  Containerfile.ol8: oraclelinux-8-amd64-rootfs.tar.xz htop-3.2.1-1.el8.x86_64.rpm  oraclelinux-8-amd64-rootfs.tar.xz: oraclelinux-8-amd64-rootfs.tar.xz.md5sum wget -c https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz md5sum -c oraclelinux-8-amd64-rootfs.tar.xz.md5sum || exit 1  oraclelinux-8-amd64-rootfs.tar.xz.md5sum: wget -c https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz.md5sum  htop-3.2.1-1.el8.x86_64.rpm: wget -c https:\/\/dl.fedoraproject.org\/pub\/epel\/8\/Everything\/x86_64\/Packages\/h\/htop-3.2.1-1.el8.x86_64.rpm<\/code><\/pre>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 oraclelinux-8-amd64-rootfs.tar.xz \u0438 oraclelinux-8-amd64-rootfs.tar.xz.md5sum, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u0441 \u043c\u0435\u0442\u043a\u043e\u0439 localhost\/ol8:latest.<\/p>\n<p> TLNR:<\/p>\n<pre><code class=\"bash\">podman image build --squash -t localhost\/ol8:latest -f Containerfile.ol8<\/code><\/pre>\n<ul>\n<li>\n<p> <code>--squash<\/code> \u2014 \u00ab\u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u0442\u00bb \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0439.<\/p>\n<\/li>\n<\/ul>\n<p> \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <\/p>\n<pre><code class=\"bash\">podman images REPOSITORY                  TAG               IMAGE ID      CREATED       SIZE localhost\/ol8               latest            96f0371642fc  2 days ago    269 MB<\/code><\/pre>\n<p> 269 \u041c\u0411 \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0432\u0443\u0447\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e.<\/p>\n<h2> 2. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 XE<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b\u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0430\u0440\u0445\u0438\u0432 \u0432 \u043e\u0431\u0440\u0430\u0437 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 XE, \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm \u0438 oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm. <\/p>\n<p>\u041f\u043b\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439:<\/p>\n<ol>\n<li>\n<p>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 preinstall \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0442\u043e \u0441\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u041e\u0440\u0430\u043a\u043b\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 XE \u0441\u043c\u043e\u0433\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u041e\u0421, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 debian\/ubuntu (\u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 rmp-\u043f\u0430\u043a\u0435\u0442\u0430 \u0432 deb- \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c alien) \u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435. \u0422\u0435\u043a\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <code>ORACLE_DOCKER_INSTALL=true<\/code>.<\/p>\n<p> \u0418\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 Containerfile.ol8:<\/p>\n<pre><code>FROM localhost\/ol8  RUN --network=host --mount=type=bind,source=.,target=\/host,ro,z \\     dnf --setopt=install_weak_deps=False install hostname \/host\/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm; \\     ORACLE_DOCKER_INSTALL=true dnf install \/host\/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm; \\     echo \"# oracle-database-xe-21c\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_HOME=\/opt\/oracle\/product\/21c\/dbhomeXE\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_BASE=\/opt\/oracle\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_SID=XE\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORAENV_ASK=NO \" &gt;&gt; \/root\/.bashrc; \\     echo \". \/opt\/oracle\/product\/21c\/dbhomeXE\/bin\/oraenv\" &gt;&gt; \/root\/.bashrc; \\     rm -rf \/var\/cache\/*; \\     rm -rf \/var\/log\/*; \\     rm -rf \/usr\/lib\/locale\/en_*; \\     rm -rf \/usr\/share\/doc\/*; \\     rm -rf \/usr\/share\/locale\/*\/; \\     rm -rf \/usr\/share\/man\/*; \\     rm -rf \/usr\/share\/licenses\/*  # CMD \/etc\/init.d\/oracle-xe-21c start CMD \/usr\/bin\/bash<\/code><\/pre>\n<p> \u0418\u0437 \u043d\u043e\u0432\u044b\u0445 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u00ab\u0441\u043b\u0430\u0431\u044b\u0435\u00bb \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 .bashrc \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>NOTE: \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u0432 .bashrc, \u0430 \u0432 \/etc\/profile<\/p>\n<p>NOTE: \u0438\u0437-\u0437\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043a\u0435\u0448\u0430 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0441\u043b\u043e\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0443\u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \/var\/cache\/, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0435\u0448 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432.<\/p>\n<pre><code>xe21.tar: Containerfile.xe21 podman image build -t localhost\/xe21:latest -f Containerfile.xe21 touch xe21.tar  Containerfile.xe21: ol8.tar oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm<\/code><\/pre>\n<p> \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:  <\/p>\n<pre><code>podman images REPOSITORY                  TAG               IMAGE ID      CREATED       SIZE localhost\/xe21              latest            a1453fecff67  2 days ago    6.59 GB localhost\/ol8               latest            96f0371642fc  2 days ago    269 M<\/code><\/pre>\n<p> <em>\u0427\u0442\u043e \u0436, \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0437\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c.<\/em><\/p>\n<h2>3. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u043b\u043e\u0439. \u041f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0433\u043b\u0443\u0431\u0436\u0435. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u043e\u043c\u0430<\/h2>\n<p>\u041d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 XE, \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0447\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 <code>\/etc\/init.d\/oracle-xe-21c configure<\/code> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u044b \u0432 oradata, \u043d\u043e \u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>\/opt\/<\/code>. \u0418 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435  oradata \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0447\u0451\u0442\u043a\u043e\u0439, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0434\u0430\u0442\u0430\u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0440\u0443\u0436\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<\/p>\n<p> \u0427\u0438\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Containerfile \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>NOTE: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0432 \/opt\/oracle\/oradata\/XE\/ \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u043c\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043c \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0430\u0444\u0430\u0439\u043b\u043e\u0432. \u0427\u0442\u043e\u0431\u044b XE \u043c\u043e\u0433\u043b\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0442\u043e\u043c\u0430 \u0432\u044b\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 uid\/gid \u0442\u043e\u043c\u0443: <code>podman volume create --opt \"o=uid=54321,gid=54321\" w00<\/code>, \u0433\u0434\u0435  54321 \u2014 oracle\/oinstall \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<\/p>\n<p>\u041d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0446\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0449\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<p>\u0424\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0437\u044f\u043b \u0442\u0430\u043a\u0438\u0435:<\/p>\n<pre><code># listener.ora Network Configuration File: \/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/listener.ora # Generated by Oracle configuration tools.  DEFAULT_SERVICE_LISTENER = XE  LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521)) #      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))     )   ) <\/code><\/pre>\n<pre><code># tnsnames.ora Network Configuration File: \/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/tnsnames.ora # Generated by Oracle configuration tools.  XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   )  LISTENER_XE =   (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521)) <\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u0437 \u043e\u0431\u0440\u0430\u0437\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <code>sh<\/code>.<\/p>\n<pre><code class=\"bash\">podman container run \\ --hostname w00 \\ --name w00 \\ --replace \\ --network host \\ --volume w00:\/opt\/oracle\/oradata\/XE\/:rw,Z \\ --volume .\/w00-tnsnames.ora:\/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/tnsnames.ora:ro,Z \\ --volume .\/w00-listener.ora:\/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/listener.ora:ro,Z \\ -it -d \\ localhost\/xe21:latest sh<\/code><\/pre>\n<p>\u0417\u0430\u0434\u0430\u043d\u043e \u0438\u043c\u044f \u043c\u0430\u0448\u0438\u043d\u044b, \u0438\u043c\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0441\u0435\u0442\u044c \u0438 \u043f\u043e\u0434\u0446\u0435\u043f\u043b\u0435\u043d\u044b \u0442\u0440\u0438 \u0442\u043e\u043c\u0430. \u0422\u043e\u043c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>w00<\/code> \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0441\u0435\u0442\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <code>-p 1521:1521<\/code>, \u0442\u043e \u0432 netstat \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441\u043b\u0443\u0448\u0430\u0435\u0442\u0441\u044f ipv6 \u043f\u043e\u0440\u0442. \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043f\u0438\u0448\u0443\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u044f\u043a\u043e\u0431\u044b \u0431\u0430\u0433 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <code>netstat<\/code> \u0438 \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u0442\u0435\u043a (\u0432\u0440\u043e\u0434\u0435, Podman \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438 IPv4, \u0438 IPv6 \u043f\u043e\u0440\u0442\u044b). \u0421\u043e\u0432\u0435\u0442\u0443\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>ss<\/code> \u0432\u043c\u0435\u0441\u0442\u043e  <code>netstat<\/code>. <code>ss<\/code> \u043c\u043d\u0435 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0438\u0434\u0430 \u00ab\u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0443\u0437\u0435\u043b \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u00bb. \u0412 wireshark \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e tcp-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0421\u0423\u0411\u0414 \u0434\u0430\u0436\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u043e \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443. \u0427\u0442\u0435\u043d\u0438\u0435 alert-\u043b\u043e\u0433\u043e\u0432 XE \u0432\u043d\u043e\u0441\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439: \u0437\u0430\u0447\u0435\u043c-\u0442\u043e XE \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e <code>--network host<\/code>, \u041f\u043e\u0447\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0437 gvenzl\/oracle-xe \u0438\u0437 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u0440\u0442\u043e\u043c \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0435\u0449\u0451 \u0431\u044b\u043b\u0430 \u0431\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043e\u0442\u043b\u0430\u0434\u043a\u043e\u0439 pl\/sql \u043a\u043e\u0434\u0430, \u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u044c \u0445\u043e\u0441\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0438 \u0435\u0451.<\/p>\n<p>\u0412 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"bash\">podman container exec \\ -e ORACLE_PASSWORD=password \\ -it \\ w00 sh -c '\\ rm -rf \/opt\/oracle\/oradata\/XE\/*; \\ chown 54321:54321 -R \/opt\/oracle\/oradata\/XE\/; \\ \/etc\/init.d\/oracle-xe-21c configure'<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <code>ORACLE_PASSWORD<\/code> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0437\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439, \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 <code>\/etc\/init.d\/oracle-xe-21c<\/code>.<\/p>\n<p>\u041f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0438\u043d\u0443\u0442 10-15, \u0447\u0442\u043e\u0431\u044b \u0421\u0423\u0411\u0414 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c. \u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a XE \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0451 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0437, \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043c \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041d\u043e \u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0421\u0423\u0411\u0414 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0448\u0430\u0433\u0443.<\/p>\n<h2> 4. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c pluggable database<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5b1\/581\/446\/5b158144666a66033e0fe9646cc9b685.png\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a Oracle DB\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a Oracle DB\" width=\"546\" height=\"402\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5b1\/581\/446\/5b158144666a66033e0fe9646cc9b685.png\"\/><\/p>\n<div><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a Oracle DB<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c pluggable database (\u0434\u0430\u043b\u0435\u0435 \u2014 PDB), \u0433\u043e\u0442\u043e\u0432\u0430\u044f \u043a \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e.<\/p>\n<details class=\"spoiler\">\n<summary>\u0415\u0441\u043b\u0438 \u0435\u0449\u0451 \u043d\u0435\u0442, \u0442\u043e \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a (\u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0448\u0435)<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>[root@w00 \/]# mkdir \/opt\/xepdbxml [root@w00 \/]# chown -R oracle:oinstall \/opt\/xepdbxml [root@w00 \/]# chmod -R 777 \/opt\/xepdbxml [root@w00 \/]# su oracle [oracle@w00 \/]$ sqlplus \/ as sysdba SQL&gt; ALTER SESSION SET CONTAINER=CDB$ROOT; SQL&gt; show pdbs; SQL&gt; alter pluggable database XEPDB1 close immediate; SQL&gt; show pdbs; SQL&gt; ALTER PLUGGABLE DATABASE XEPDB1 UNPLUG INTO '\/opt\/xepdbxml\/XEPDB1.xml';  [root@w00 \/]# cp \/opt\/oracle\/oradata\/XE\/XEPDB1\/* \/opt\/xepdbxml\/  SQL&gt; DROP pluggable database XEPDB1 KEEP DATAFILES; SQL&gt; CREATE PLUGGABLE DATABASE XEPDB1 AS CLONE USING '\/opt\/xepdbxml\/XEPDB1.xml' SOURCE_FILE_NAME_CONVERT=('XEPDB1', 'XEPDB1') NOCOPY TEMPFILE REUSE; SQL&gt; alter pluggable database XEPDB1 open; SQL&gt; alter pluggable database all save state;<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c PDB, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0451 \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430:<\/p>\n<pre><code class=\"bash\">podman container cp .\/XEPDB1\/ w00:\/tmp\/ podman container exec -it w00 bash<\/code><\/pre>\n<p> \u0414\u0435\u043b\u0430\u0435\u043c \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u0448\u0430\u0433\u0438 \u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e PDB \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c:<\/p>\n<pre><code>SQL&gt; alter pluggable database XEPDB1 close immediate; SQL&gt; DROP pluggable database XEPDB1 INCLUDING DATAFILES;  mv \/tmp\/XEPDB1\/ \/opt\/oracle\/oradata\/XE\/XEPDB1\/  SQL&gt; CREATE PLUGGABLE DATABASE XEPDB1 AS CLONE USING '\/opt\/oracle\/oradata\/XE\/XEPDB1\/XEPDB1.xml' SOURCE_FILE_NAME_CONVERT=('XEPDB1', 'XEPDB1') NOCOPY TEMPFILE REUSE; SQL&gt; alter pluggable database XEPDB1 open; SQL&gt; alter pluggable database all save state;<\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u0447\u043d\u043e \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440, \u0438 \u0442\u043e\u043c:<\/p>\n<pre><code class=\"bash\">podman container exec \\ -it \\ w00 \/etc\/init.d\/oracle-xe-21c stop podman container commit \\ --pause \\ --change CMD='\/etc\/init.d\/oracle-xe-21c start' \\ w00 localhost\/w00:latest podman container stop w00 podman volume export w00 --output w00.tar podman image push localhost\/w00:latest oci-archive:xe21s.tar<\/code><\/pre>\n<p> \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:  <\/p>\n<pre><code class=\"bash\">podman images REPOSITORY                  TAG               IMAGE ID      CREATED       SIZE localhost\/w00               latest            fafd040c01df  2 days ago    7.12 GB localhost\/xe21              latest            a1453fecff67  2 days ago    6.59 GB localhost\/ol8               latest            96f0371642fc  2 days ago    269 MB<\/code><\/pre>\n<h2>5. \u0417\u0430\u043f\u0443\u0441\u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432<\/h2>\n<p> \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<ol>\n<li>\n<p> \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c tnsnames.ora \u0438 listener.ora, \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u0440\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p> \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0442\u043e\u043c \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438:<\/p>\n<p><code>podman volume create w01;<\/code><\/p>\n<p><code>podman volume import w01 w00.tar<\/code><\/p>\n<\/li>\n<li>\n<p> \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"bash\">podman container create \\ --hostname w01 \\ --name w01 \\ --replace \\ --network host \\ --volume w01:\/opt\/oracle\/oradata\/XE\/:rw,Z \\ --volume .\/w01-tnsnames.ora:\/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/tnsnames.ora:rw,Z \\ --volume .\/w01-listener.ora:\/opt\/oracle\/homes\/OraDBHome21cXE\/network\/admin\/listener.ora:rw,Z \\ -it \\ localhost\/w00:latest \\ sh -c '\/etc\/init.d\/oracle-xe-21c start; sh'<\/code><\/pre>\n<p> \u0417\u0430\u043f\u0443\u0441\u043a \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u0435\u043d:<\/p>\n<pre><code class=\"bash\">podman container start w00 w01<\/code><\/pre>\n<h2>6. \u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 (\u0438\u043b\u0438) \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u0443, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u043e uid\/gid.<\/p>\n<pre><code class=\"bash\">cat\u00a0\/etc\/subuid\u00a0|\u00a0grep\u00a0user user:200000:65535 cat\u00a0\/etc\/subgid\u00a0|\u00a0grep\u00a0 user user:200000:65535 tail\u00a0-n1\u00a0\/etc\/passwd w00-oracle:x:254320:254320::\/home\/w00-oracle:\/bin\/false tail\u00a0-n1\u00a0\/etc\/group w00-oinstall:x:254320:<\/code><\/pre>\n<p>54321 (uid \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430) + 200000 (subuid \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f user) &#8212; 1 = 254320<\/p>\n<p>NOTE: \u043d\u0435\u0440\u0435\u0448\u0451\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c XE, \u0430 \u043d\u0435 \u043a\u0430\u043a \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0443\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 10 \u0441\u0435\u043a\u0443\u043d\u0434.  <\/p>\n<p>NOTE: \u043d\u0435\u0440\u0435\u0448\u0451\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 unit-systemd.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/870766\/\"> https:\/\/habr.com\/ru\/articles\/870766\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u00ab\u0441 \u043d\u0443\u043b\u044f\u00bb \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 Podman. \u0412\u043d\u0443\u0442\u0440\u044c\u00a0\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u00a0\u00ab\u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u0430\u00bb\u00a0\u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Oracle Database 21c Express Edition. \u0418 \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0420\u0415\u0414 \u041e\u0421.<\/p>\n<p>*2 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<\/p>\n<hr\/>\n<p> \u0422\u0430\u043a \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0447\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 docker.io \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0437 <a href=\"https:\/\/hub.docker.com\/r\/gvenzl\/oracle-xe\" rel=\"noopener noreferrer nofollow\">gvenzl\/oracle-xe<\/a> \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430\u043c\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0439?<\/p>\n<ol>\n<li>\n<p>\u042d\u0442\u043e \u043c\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a Podman \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435 \u0438 \u0441\u0440\u0435\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0432 \u0446\u0435\u043b\u043e\u043c, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b;<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0448\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u044f\u0434\u0440\u0430 Linux \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432 \u0438\u043c\u0451\u043d \u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0441\u0435\u043b\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f (\u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0431\u0440\u0430\u0437\u0430 \u00ab\u0441 \u043d\u0443\u043b\u044f\u00bb, \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u0432).<\/p>\n<\/li>\n<\/ol>\n<p> \u041d\u0430\u0447\u043d\u0451\u043c.<\/p>\n<h2>0. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0445\u043e\u0441\u0442<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u041e\u0421 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c:<\/p>\n<pre><code class=\"bash\">dnf search podman podman.x86_64 : Manage Pods, Containers and Container Images dnf install podman<\/code><\/pre>\n<p> \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">uname -r; cat \/etc\/redos-release; podman --version  6.1.52-1.el7.3.x86_64 RED OS release MUROM (7.3.5) DESKTOP podman version 4.9.5<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 subuid:<\/p>\n<pre><code class=\"bash\">usermod --add-subuids 200000-265535 --add-subgids 200000-265535 user<\/code><\/pre>\n<p>\u0433\u0434\u0435 <code>user<\/code> \u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f selinux, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043b\u043e\u0433\u0438. \u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u0431\u044b\u043b\u043e \u0432\u044b\u044f\u0441\u043d\u0435\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0447\u0442\u043e\u0431\u044b \u0438\u0437 \u043b\u043e\u0433\u043e\u0432 \u0438\u0441\u0447\u0435\u0437\u043b\u0438 \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430:<\/p>\n<pre><code class=\"bash\">setsebool -P virt_sandbox_use_netlink 1 setsebool -P domain_kernel_load_modules 1<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u0430\u043a \u044f \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u044c, \u0432\u0442\u043e\u0440\u0430\u044f \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 Oracle Database 21c Express Edition (\u0434\u0430\u043b\u0435\u0435 \u2014 XE). <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u0430\u0432\u0430 \u0440\u0443\u0442\u0430 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Podman\u2019\u0430 \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <code>~\/.config\/containers\/containers.conf<\/code>. \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441:<\/p>\n<pre><code>[containers] tz = \"local\"  # \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/code><\/pre>\n<p>\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 Podman\u2019\u0430 \u0432 rootless-\u0440\u0435\u0436\u0438\u043c\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435 \u0432 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0430\u0447\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 (\u0432 \u0441\u043a\u0440\u044b\u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <code>~\/.local\/<\/code>), \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>~\/.config\/containers\/storage.conf<\/code>:<\/p>\n<pre><code>[storage] driver = \"overlay\" graphroot = \"\/home\/user\/.local\/share\/containers\/storage\" #runroot = ...<\/code><\/pre>\n<p>NOTE: \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043c\u0435\u0442\u043a\u0430\u043c\u0438 selinux \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435: \u0432 <code>man containers-storage.conf<\/code>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0426\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/summary>\n<div class=\"spoiler__content\">\n<blockquote>\n<p>        graphroot=&#187;&#187; <\/p>\n<p>         container storage graph dir (default:  &#171;\/var\/lib\/containers\/storage&#187;) <\/p>\n<p>       Default  directory  to  store all writable content created by container <\/p>\n<p>       storage programs.  The rootless  graphroot  path  supports  environment <\/p>\n<p>       variable  substitutions  (ie. $HOME\/containers\/storage).  When changing <\/p>\n<p>       the graphroot location  on  an  SELINUX  system,  ensure  the  labeling <\/p>\n<p>       matches the default locations labels with the following commands: <\/p>\n<p>              # semanage fcontext -a -e \/var\/lib\/containers\/storage \/NEWSTORAGEPATH <\/p>\n<p>              # restorecon -R -v \/NEWSTORAGEPATH <\/p>\n<p>       In rootless mode you would set <\/p>\n<p>              # semanage fcontext -a -e $HOME\/.local\/share\/containers NEWSTORAGEPATH <\/p>\n<p>              $ restorecon -R -v \/NEWSTORAGEPATH <\/p>\n<\/blockquote>\n<\/div>\n<\/details>\n<h2> 1. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u043e\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u041e\u0421<\/h2>\n<p>\u0421 \u0437\u0430\u043d\u0443\u0434\u043d\u044b\u043c \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u0435\u043b\u044c\u0435. \u0425\u043e\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u043c\u0435\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f Dockerfile \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u044d\u0442\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c. Podman \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442  Dockerfile\u2019\u044b, \u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Containerfile.<\/p>\n<p> \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Containerfile.ol8:<\/p>\n<pre><code>FROM scratch<\/code><\/pre>\n<p> \u041d\u0435\u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u043d\u043e, \u043d\u043e \u043d\u0430\u043c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 XE \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a XE<\/summary>\n<div class=\"spoiler__content\">\n<blockquote>\n<p>Oracle Linux 8.2 with the Unbreakable Enterprise Kernel 6: 5.4.17-2011.1.2.el8uek.x86_64 or later<\/p>\n<p>Oracle Linux 8.2 with the Red Hat Compatible Kernel: 4.18.0-193.19.1.el8_2.x86_64 or later <\/p>\n<p>Oracle Linux 7.6 with the Unbreakable Enterprise Kernel 5: 4.14.35-2025.404.1.el7uek.x86_64 or later<\/p>\n<p>Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 4: 4.1.12-124.53.1.el7uek.x86_64 or later <\/p>\n<p>Red Hat Enterprise Linux 8.2: 4.18.0-193.19.1.el8_2.x86_64 or later <\/p>\n<p>SUSE Linux Enterprise Server 15 SP1: 4.12.14-197.29-default or later  <\/p>\n<p>Review the system requirements section for a list of minimum package requirements.<\/p>\n<\/blockquote>\n<\/div>\n<\/details>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d Oracle Linux 8. \u0418 \u043d\u0430 docker.io \u0435\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 <a href=\"https:\/\/hub.docker.com\/_\/oraclelinux\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b<\/a> \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u041e\u0440\u0430\u043a\u043b\u0430. \u041d\u043e \u043c\u044b \u043f\u043e\u0439\u0434\u0451\u043c, \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c, \u044d\u0442\u0438 \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u043a\u0442\u043e-\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0433\u0434\u0435-\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 Dockerfile. \u041d\u0435\u0434\u043e\u043b\u0433\u0438\u0435 \u043f\u043e\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 <a href=\"https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz\" rel=\"noopener noreferrer nofollow\">oraclelinux-8-amd64-rootfs.tar.xz<\/a>.<\/p>\n<p> \u0418\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 Containerfile.ol8:<\/p>\n<pre><code>FROM scratch  ADD oraclelinux-8-amd64-rootfs.tar.xz \/  RUN --network=host --mount=type=bind,source=.,target=\/host,ro,z \\     dnf install mc nano \/host\/htop-3.2.1-1.el8.x86_64.rpm; \\     rm -rf \/var\/cache\/*; \\     rm -rf \/var\/log\/*; \\     rm -rf \/usr\/lib\/locale\/en_*; \\     rm -rf \/usr\/share\/doc\/*; \\     rm -rf \/usr\/share\/locale\/*\/; \\     rm -rf \/usr\/share\/man\/*; \\     rm -rf \/usr\/share\/licenses\/*  CMD \/usr\/bin\/bash<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0436\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u043c (\u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e mc, nano \u0438 htop). \u0415\u0449\u0451 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442 htop, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <a href=\"https:\/\/pkgs.org\/download\/htop\" rel=\"noopener noreferrer nofollow\">https:\/\/pkgs.org\/download\/htop<\/a> \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0418\u0437 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p> <code>--network=host<\/code> \u2014 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0435\u0442\u044c. \u0418\u0437 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0441\u0438, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438\u0437 \u0445\u043e\u0441\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p><code>--mount=type=bind,source=.,target=\/host,ro,z<\/code> \u2014 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438\u0445 \u0438\u0437 \u043e\u0431\u0440\u0430\u0437\u0430, \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 (<code>z<\/code> \u2014 \u0447\u0442\u043e\u0431\u044b selinux \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043a\u0438);<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>\u042d\u0442\u043e \u0448\u0443\u0442\u043a\u0430, \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435<\/figcaption><\/div>\n<\/figure>\n<p> \u0410 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u043d\u0435 \u0437\u0430\u0441\u043a\u0443\u0447\u0430\u0442\u044c, \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c Makefile \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Makefile.ol8 (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e):<\/p>\n<pre><code>ol8.tar: Containerfile.ol8 podman image build --squash -t localhost\/ol8:latest -f Containerfile.ol8 touch ol8.tar  Containerfile.ol8: oraclelinux-8-amd64-rootfs.tar.xz htop-3.2.1-1.el8.x86_64.rpm  oraclelinux-8-amd64-rootfs.tar.xz: oraclelinux-8-amd64-rootfs.tar.xz.md5sum wget -c https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz md5sum -c oraclelinux-8-amd64-rootfs.tar.xz.md5sum || exit 1  oraclelinux-8-amd64-rootfs.tar.xz.md5sum: wget -c https:\/\/raw.githubusercontent.com\/oracle\/container-images\/refs\/heads\/dist-amd64\/8\/oraclelinux-8-amd64-rootfs.tar.xz.md5sum  htop-3.2.1-1.el8.x86_64.rpm: wget -c https:\/\/dl.fedoraproject.org\/pub\/epel\/8\/Everything\/x86_64\/Packages\/h\/htop-3.2.1-1.el8.x86_64.rpm<\/code><\/pre>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 oraclelinux-8-amd64-rootfs.tar.xz \u0438 oraclelinux-8-amd64-rootfs.tar.xz.md5sum, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u0441 \u043c\u0435\u0442\u043a\u043e\u0439 localhost\/ol8:latest.<\/p>\n<p> TLNR:<\/p>\n<pre><code class=\"bash\">podman image build --squash -t localhost\/ol8:latest -f Containerfile.ol8<\/code><\/pre>\n<ul>\n<li>\n<p> <code>--squash<\/code> \u2014 \u00ab\u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u0442\u00bb \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0439.<\/p>\n<\/li>\n<\/ul>\n<p> \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <\/p>\n<pre><code class=\"bash\">podman images REPOSITORY                  TAG               IMAGE ID      CREATED       SIZE localhost\/ol8               latest            96f0371642fc  2 days ago    269 MB<\/code><\/pre>\n<p> 269 \u041c\u0411 \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0432\u0443\u0447\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e.<\/p>\n<h2> 2. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 XE<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b\u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0430\u0440\u0445\u0438\u0432 \u0432 \u043e\u0431\u0440\u0430\u0437 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 XE, \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm \u0438 oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm. <\/p>\n<p>\u041f\u043b\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439:<\/p>\n<ol>\n<li>\n<p>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 preinstall \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0442\u043e \u0441\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u044b \u041e\u0440\u0430\u043a\u043b\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 XE \u0441\u043c\u043e\u0433\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u041e\u0421, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 debian\/ubuntu (\u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 rmp-\u043f\u0430\u043a\u0435\u0442\u0430 \u0432 deb- \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c alien) \u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435. \u0422\u0435\u043a\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <code>ORACLE_DOCKER_INSTALL=true<\/code>.<\/p>\n<p> \u0418\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 Containerfile.ol8:<\/p>\n<pre><code>FROM localhost\/ol8  RUN --network=host --mount=type=bind,source=.,target=\/host,ro,z \\     dnf --setopt=install_weak_deps=False install hostname \/host\/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm; \\     ORACLE_DOCKER_INSTALL=true dnf install \/host\/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm; \\     echo \"# oracle-database-xe-21c\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_HOME=\/opt\/oracle\/product\/21c\/dbhomeXE\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_BASE=\/opt\/oracle\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORACLE_SID=XE\" &gt;&gt; \/root\/.bashrc; \\     echo \"export ORAENV_ASK=NO \" &gt;&gt; \/root\/.bashrc; \\     echo \". \/opt\/oracle\/product\/21c\/dbhomeXE\/bin\/oraenv\" &gt;&gt; \/root\/.bashrc; \\     rm -rf \/var\/cache\/*; \\     rm -rf \/var\/log\/*; \\     rm -rf \/usr\/lib\/locale\/en_*; \\     rm -rf \/usr\/share\/doc\/*; \\     rm -rf \/usr\/share\/locale\/*\/; \\     rm -rf \/usr\/share\/man\/*; \\     rm -rf \/usr\/share\/licenses\/*  # CMD \/etc\/init.d\/oracle-xe-21c start CMD \/usr\/bin\/bash<\/code><\/pre>\n<p> \u0418\u0437 \u043d\u043e\u0432\u044b\u0445 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u00ab\u0441\u043b\u0430\u0431\u044b\u0435\u00bb \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 .bashrc \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>NOTE: \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u0432 .bashrc, \u0430 \u0432 \/etc\/profile<\/p>\n<p>NOTE: \u0438\u0437-\u0437\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043a\u0435\u0448\u0430 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0441\u043b\u043e\u0435 \u0434\u0432\u0430\u0436\u0434\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0443\u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u043e \u0432\u0440\u0435\u043c\u044f <\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-443827","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443827"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443827\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}