apt update<\/code><\/pre>\n\n\n\n\u3057\u304b\u3057\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n
root@1812140a4e13:\/var\/www\/html# apt update
Err:1 http:\/\/deb.debian.org\/debian bullseye InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
Err:2 http:\/\/deb.debian.org\/debian-security bullseye-security InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:5f::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
Err:3 http:\/\/deb.debian.org\/debian bullseye-updates InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable)
Reading package lists\u2026 Done
Building dependency tree\u2026 Done
Reading state information\u2026 Done
All packages are up to date.
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian-security\/dists\/bullseye-security\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:5f::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye-updates\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@1812140a4e13:\/var\/www\/html# ^C
root@1812140a4e13:\/var\/www\/html# apt update
Err:1 http:\/\/deb.debian.org\/debian bullseye InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
Err:2 http:\/\/deb.debian.org\/debian-security bullseye-security InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
Err:3 http:\/\/deb.debian.org\/debian bullseye-updates InRelease
Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:58::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.126.132), connection timed out
Reading package lists\u2026 Done
Building dependency tree\u2026 Done
Reading state information\u2026 Done
All packages are up to date.
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.98.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian-security\/dists\/bullseye-security\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:2c::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.30.132), connection timed out
W: Failed to fetch http:\/\/deb.debian.org\/debian\/dists\/bullseye-updates\/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:58::644). – connect (101: Network is unreachable) Could not connect to deb.debian.org:80 (199.232.126.132), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.<\/p>\n\n\n\n
\u3044\u3064\u3082\u306f\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u4f5c\u696d\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u306f\u5b66\u7fd2\u304c\u3066\u3089\u30db\u30b9\u30c8\u3068\u30b3\u30f3\u30c6\u30ca\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5171\u6709\u3059\u308b\u65b9\u6cd5\u3092\u8a66\u3057\u307e\u3059\u3002\u5171\u6709\u3068\u304b\u30de\u30a6\u30f3\u30c8\u3067\u691c\u7d22\u3059\u308b\u3068\u51fa\u3066\u304d\u307e\u3059\u3002\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3001php\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001web\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30db\u30b9\u30c8\u95a2\u9023\u3084\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a18\u8ff0\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082MySQL\u306b\u63a5\u7d9a\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u306a\u3044\u3068\u56f0\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u8abf\u3079\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u5b9f\u306f\u6b21\u306e\u65e5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3089\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n
php\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u2192\/usr\/local\/etc\/php
Web\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u2192\/etc\/apache2
\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u2192\/var\/www\/html<\/p>\n\n\n\n
\u30ea\u30dd\u30b8\u30c8\u30ea\u95a2\u9023\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u542b\u3081\u3001\u3053\u308c\u3089\u3092Podman\u306e\u30b3\u30d4\u30fc\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e00\u5ea6\u30db\u30b9\u30c8\u306b\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u51fa\u3066\u30db\u30b9\u30c8\u3067\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
mkdir blog\npodman cp blog:\/usr\/local\/etc\/php \/root\/blog\/\npodman cp blog:\/etc\/apache2 \/root\/blog\/\npodman cp blog:\/var\/www\/html \/root\/blog\/\npodman cp blog:\/etc\/apt \/root\/blog\/\npodman cp blog:\/etc\/resolv.conf \/root\/blog<\/code><\/pre>\n\n\n\n\u30db\u30b9\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u5bc4\u305b\u305f\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3057\u3066\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
podman stop blog\npodman rm blog<\/code><\/pre>\n\n\n\n\u4eca\u5ea6\u306f\u30de\u30a6\u30f3\u30c8\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u8ffd\u52a0\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<\/p>\n\n\n\n
podman run --name blog \n -p 80:80 \n -p 443:443 \n -v \/root\/blog\/php:\/usr\/local\/etc\/php \n -v \/root\/blog\/apache2:\/etc\/apache2 \n -v \/root\/blog\/html:\/var\/www\/html \n -v \/root\/blog\/resolv.conf:\/etc\/resolv.conf \n -v \/root\/blog\/apt:\/etc\/apt \n -d docker.io\/library\/wordpress<\/code><\/pre>\n\n\n\n\u3046\u307e\u304f\u30b3\u30f3\u30c6\u30ca\u304c\u7acb\u3061\u4e0a\u304c\u3063\u305f\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5148\u307b\u3069\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bresolv.conf\u306e\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u5ff5\u306e\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u30db\u30b9\u30c8\u3067\u5909\u66f4\u3092\u52a0\u3048\u305f\u3053\u3068\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u8ff0\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n
nameserver\u306eIP\u30a2\u30c9\u30ec\u30b9\u30928.8.8.8\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n
\u30db\u30b9\u30c8\u3068\u30b3\u30f3\u30c6\u30ca\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u5171\u6709\u72b6\u614b\u306b\u3042\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u30db\u30b9\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3092\u52a0\u3048\u308c\u3070\u30b3\u30f3\u30c6\u30ca\u306b\u3082\u53cd\u6620\u3055\u308c\u308b\u306e\u3067\u3001\u57fa\u672c\u7684\u306b\u306f\u30db\u30b9\u30c8\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n
\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u306a\u3044\u306e\u3067\u3001\u540c\u69d8\u306b\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4e00\u756a\u8ca0\u8377\u304c\u304b\u304b\u308b\u306e\u3067AWS\u306b\u3042\u308bRDS\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306fRDS\u306b\u5916\u90e8\u63a5\u7d9a\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u4f5c\u696d\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306e\u8a18\u4e8b\u306b\u3066\u8aac\u660e\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n