

The output should be similar to the following: rvice - Docker Application Container Engine We can verify that it’s running with the following command: sudo systemctl status docker Next, we will add the Docker repository, enable it, and install it with the following commands: sudo yum-config-manager -add-repo Īfter the installation has completed, we will start the Docker daemon: sudo systemctl start docker We will install some required dependencies with the following command: sudo yum install yum-utils device-mapper-persistent-data lvm2 The recommended way to install Docker is to install from the Docker repositories. Once the update is completed, we can move onto the installation step. You can do this by running the following command: sudo yum update

Full SSH root access, or a user with sudo privileges is also required.Ĭonnect to your server via SSH as the root user using the following command: ssh -p PORT_NUMBERĪnd replace “ IP_ADDRESS” and “ PORT_NUMBER” with your actual server IP address and SSH port number.īefore starting with the installation, you will need to update your system packages to their latest versions.For the purposes of this tutorial, we will use a CentOS 7 VPS.Step 4: The Docker Command Line Interface.I've already tried to force docker to recreate the interface as suggested somewhere, and still no luck solving this issue. Search hostgator_br.com nameserver 8.8.8.8 nameserver 8.8.4.4Īfter trying to narrow down the issue, i've verified that if i run containers using -network host, the dns works fine, so the problem is probably on the docker0 bridge created by docker during the installation. The containers can ping to ips, but not domains, giving me a "bad address".Īfter a whole day researching and trying stuff like forcing a dns on the daemon.json file, looking for a firewall to disable (i don't have firewall-cmd installed, only iptables, and even with it stopped, the problem continues), and nothing resulted in the dns working. I'm migrating to a new VPS on hostgator, and it comes with CentOS and WHM+CPanel preinstalled.Īfter installing docker, and trying to run a few containers, i'm having a weird issue, and i really don't know the cause.
