I thought so! But don’t you worry, it’s just a permission issue and we can deal with it. What? Did it give you an error? Something like this docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post dial unix /var/run/docker.sock: connect: permission denied. Now let’s run another command $ docker info Error! Thereby ensure the installation of Docker also. You can check the Docker version you have gotten on your system. Hurrah! we have successfully installed Docker on our LMDE machine and now can use it. Great! Let’s go ahead with Docker installation using $ sudo apt-get install docker-ce docker-ce-cli containerd.io Let’s update our apt index packages once more. So to avoid this, we manually gave the release name. However it would give the code-name for our LMDE release ie cindy in my case. In official documentation, it takes the release name for the Debian through the command $ lsb_release -csĭirectly. This is the part where I have put a change from the official documentation. Hence we’ll be using the following command to set up the repository sudo add-apt-repository \ "deb \ $ stretch \Īs soon as you press enter, the repository will be added in your system. Here what we have to look for is present at the last of the generated output ie DEBIAN_CODENAME which is stretch in our case. It would produce the output something similar to PRETTY_NAME="LMDE 3 (cindy)" To check on which Debian base your LMDE is set up, use the following command $ cat /etc/os-release Now, we will set up the repository for Debian stable release. Now add Docker’s official GPG key $ curl -fsSL | sudo apt-key add. Install packages to allow apt to use repository over HTTPS $ sudo apt-get install \ Update the apt package index sudo apt-get update Since, we are installing the docker for the first time, we need to set up the Docker repository so that we can install and update it from these repositories. However, with a few changes as because we are using LMDE and not Debian itself. If the package docker.io is not present on your system, then we’ll go with procedure defined for Debian. You can proceed as $ sudo apt-get install docker.io If it shows the package then a regular installation of this package would install docker on your machine. Firstly check if the package docker.io is installed on your system.So, I wasn’t sure if I should go with the installation procedure for Debian based distro or if there is something else that has to be followed.Īfter getting help from various people and searching on the web, I successfully installed the docker on my LMDE machine. There were generic options like CentOS, Debian, Ubuntu, and Fedora. But I found no specific option for Linux Mint. However, there were different procedures for installing it and those were based upon your Linux distribution. Like every other person, I had gone to the official documentation looking for installation procedure. So I thought writing a small post for other people who might face the same thing would help. But before anything, you’d need to install Docker on your machine. You can learn more about Docker Compose in our dedicated guide.There are very probable chances that you might come across using Docker in your tech lifetime. If the variable's not set in your shell, DEFAULT will be used as the value instead. Environment variables can be interpolated into strings using the $ syntax. You can pass shell environment variables into containers ( environments) and setup Docker port binds ( ports). Containers are defined under the services node, with each container declaring its Docker image. The example YAML file showcases a few Docker Compose features. Use docker-compose down to remove the containers. You can stop them both using docker-compose stop. You'll see both images get pulled from Docker Hub. You can launch both the services by running docker-compose up -d. Here's a simple docker-compose.yml to run a PHP web server and a MySQL database:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |