

Installing and Using Docker on CentOS and Fedoraįor complete instructions on even more Linux distributions, reference the Install Docker Engine section of Docker’s official documentation. Installing and Using Docker on Ubuntu and Debian To install Docker CE (Community Edition), follow the instructions within one of the guides below: You must have Docker installed on your Linode to continue. Once your changes have propagated, you can move forward with the installation.

You can test to see if your DNS changes have propagated with the dig command: dig +short The following support documents describe how to update DNS records at common nameserver authorities: If you use a different DNS provider, review that provider’s documentation for setting up a new A record. You will need to set up an A record which is assigned your Linode’s IP address. If you already use Linode’s name servers, or if you would like to use them for your domain, review the DNS Manager guide. There are several options for updating your DNS records: It takes some time for DNS changes to propagate through the internet, so it’s suggested that you do this before you set up GitLab. However, using a domain is necessary if you would like to take advantage of GitLab’s built in SSL support, which uses Let’s Encrypt to issue certificates. This step is optional, as you can always access GitLab via your server’s IP address. You can do this by supplying the -p flag: ssh -p 26Īssign a domain or subdomain to your GitLab server. After updating this file and saving the change, restart the SSH service: sudo systemctl restart sshdĬlose your current SSH session and create a new one, making sure to specify the new port. When editing the file, you may also need to uncomment the Port line by removing the # character from the start of the line, if one is present. The example snippet below changes the port from 22 to port 26: This can be accomplished by editing your Linode’s /etc/ssh/sshd_config file and changing the Port assignment. To fix this, you’ll want to change the port that your system’s SSH service listens on. Your system’s SSH service already runs on this port by default, so you will receive an error from GitLab if you don’t address this conflict. When installing GitLab, the software will need to bind to port 22, which is the standard port for SSH. One of GitLab’s features is the ability for you to push and fetch code changes to and from your repository over SSH.


Review and implement the measures in the Setting Up and Securing a Compute Instance guide, including creating a limited user account. When following this guide under another OS, use the Docker installation instructions for that OS. You may be able to adapt this guide to other operating systems supported by Docker. This guide was written for and tested with Ubuntu 18.04.
