{"id":1,"date":"2022-11-08T06:08:53","date_gmt":"2022-11-07T22:08:53","guid":{"rendered":"http:\/\/192.168.31.83:8888\/?p=1"},"modified":"2022-11-09T05:51:36","modified_gmt":"2022-11-08T21:51:36","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/joson.cc\/?p=1","title":{"rendered":"podman\u7b14\u8bb0"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u5bb9\u5668\u955c\u50cf\u52a0\u901f\u670d\u52a1\nhttps:\/\/cr.console.aliyun.com\/cn-zhangjiakou\/instances\/mirrors?accounttraceid=df5460ffc1564ef18daafa6f0fab9384lwno\n\npodman build -f Dockerfile -t ubi-with-nano\npodman run ubi8\/ubi\npodman ps -a\n\n#\u68c0\u67e5\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\npodman inspect -l |grep -i ipaddress\npodman attach xxxx\n\n#\u5bfc\u51fa\u5bfc\u5165\npodman save > php8.1.tar php:8.1\ndocker load &lt; php8.1.tar\n\n#\u505c\u6b62\u6307\u5b9apod\u6216\u8005\u6240\u6709pod(\u5176\u4e2d\u7684\u5bb9\u5668\u4e5f\u968f\u4e4b\u505c\u6b62)\n\npodman pod stop HelloWorld\npodman pod stop $(podman pod ps -q)\n\n#\u5220\u9664\u6307\u5b9aPod\u6216\u8005\u5220\u9664\u6240\u6709\u5df2\u7ecf\u505c\u6b62\u7684pod\n\npodman pod rm -f HugoBlog\npodman pod rm $(podman pod ps -q)\npodman rm $(podman ps -a -q)\n\n#\u8fd9\u91cc\u9700\u8981\u4fee\u6539podman\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\/etc\/containers\/registries.conf\n\nunqualified-search-registries = [\"docker.io\"]\n[[registry]]\nprefix=\"docker.io\"\nlocation=\"fi54miqv.mirror.aliyuncs.com\"\ncsdn.net\/liqz2009\/article\/details\/126567221\n\n#\u7ed9go\u9879\u76ee\u6253\u6700\u5c0fdocker\u955c\u50cf\nhttps:\/\/www.bilibili.com\/read\/cv17024112\n\n#\u67e5\u770b\u6240\u6709\u5bb9\u5668IP\ndocker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)\n\ndsG5CrIhXayAC4I9\ngrant all privileges on . to root@'%';\n\n#ubuntu\u66f4\u6362\u6e90\nsed -i s@\/archive.ubuntu.com\/@\/mirrors.aliyun.com\/@g \/etc\/apt\/sources.list\nsed -i s@\/security.ubuntu.com\/@\/mirrors.aliyun.com\/@g \/etc\/apt\/sources.list\napt-get clean\napt-get update\n\n#mysql\u5bc6\u7801\u95ee\u9898\nhttps:\/\/blog.csdn.net\/qq_54202620\/article\/details\/122729704<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[7],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-8","tag-docker"],"_links":{"self":[{"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joson.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":2,"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/joson.cc\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/joson.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joson.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joson.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}