Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
Install Docker on cPanel - PC✗3
Install Docker on cPanel

Install Docker on cPanel

Side note: I think it’s a bad idea to run Docker on cPanel because, if a user is given root access inside the container, they are just one kernel exploit away from gaining control of the entire server.

1. Install Docker on cPanel

From the terminal run:

curl -fsSL https://get.docker.com/ | sh
image 4 - Install Docker on cPanel
systemctl start docker

And add it to systemctl so that it starts after reboot:

systemctl enable docker

2. Allow Docker in CSF

Edit /etc/csf/csf.conf and change DOCKER = “0” to DOCKER = “1

image 7 - Install Docker on cPanel

Whitelist the docker network

csf -a 172.17.0.0/24

then restart csf:

csf -ra

or from WHM > ConfigServer Firewall > Firewall Configuration

image 5 - Install Docker on cPanel

and whitelist Docker network:

image 6 - Install Docker on cPanel

That completes the installation of Docker on cPanel.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.