![]() Now that everything is prepared, you can install docker community edition with the following command: sudo apt update & sudo apt install docker-ce Now add Docker's repository, this will allow you to install Docker using apt-get: sudo add-apt-repository "deb $(lsb_release -cs) stable" Start by installing the following required packages: sudo apt install apt-transport-https ca-certificates curl software-properties-commonĪnd now add Docker's official GPG key, this will allow us to add the Docker repository: curl -fsSL | sudo apt-key add. I have successfully used this on Ubuntu 16.04 as-well as 18.04 without issue, and it should work fine on other versions too although I have not tried this myself. This guide should work without issue on any recent version of Ubuntu. You can use this application to start and stop containers and modify basic settings, but you'll still need to use Terminal for some of the commands mentioned, as these are not available through Kitematic. Note: Docker Desktop comes with an application called Kitematic, which allows you to more easily control docker containers using a GUI. The first time you launch Docker it might take a few minutes for it to initialize, so wait for it to complete before you proceed. Once installed and launched, you'll see a Docker status menu icon in the top-right of your display. ![]() You can download Docker Desktop for Mac and follow its installation instructions. In case you already have Docker set up on your machine, you can skip to the next step. (optional) Restore data from a dump file.A Mac or access to a Linux (virtual) machine (Full Windows support is outside the scope of this guide).Some familiarity with Terminal (I recommend iTerm for Mac, or cmder for Windows).I have also included how to easily download and import data from a Heroku-hosted Postgres database, although the same can easily be adapted for other hosting solutions too. This is by no means the perfect or one-and-only method, but it works for my specific needs, and might help you as-well. Here are my personal notes on how to set up Postgres locally using Docker.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |