Skip to main content

Posts

Showing posts from January, 2021

Multisites on Docker Container (Wordpress framework)

 Assalamualaikum.   Photo by Domenico Loia on Unsplash   Short story, i want to replicate https://4nutz.tk to https://kedaibiskut.tk  and  i want them to keep running on docker containers. If you haven't know how did I setup the docker infrastructure for https://4nutz.tk you can read first my previous post.   I have to admit that i didn't study nginx proxy first to implement the multisites. this is more like a hack way ~ i'm just going to highlight what is important ya. 1) Created a new database in existing container mysql. dump 4nutz db to kedaibiskut. yeah i m doing this because i totally wants everything retains! later on i ll customize the data. this is due to basic configuration needed i already done all in 4nutz. for more details on  how to dump and retrieve wordpress db data checkout those posts! 2) i created a new wordpress container for the new website, for the content i copied all from 4nutz wordpress and of course change the wp-config....

Error on running Certbot Container on Docker

 ERROR: for certbot  Cannot start service certbot: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:432: running prestart hook 0 caused \\\"error running hook: exit status 2, stdout: , stderr: fatal error: runtime: out of memory   what a long 3 nights (not that i don't sleep, continued doing and fixing in 3 nights~) that i have been trying to figure out how to solve this problem!  Posting on separate post so that can highlight this issue.  In the beginning i thought it is due to wrong docker-compose.yml setting for certbot! weird because when i first using it for setting up 4nutz.tk there is no such issue! I am rerunning it again to setup for kedaibiskut.tk !   at first my command used was for multiple webroot path. but then i realized naah lets try with a single one! issue still occurs.   i even run with verbose flag to see the error details! ...