docker laravel configuration ubuntu 1

docker laravel configuration ubuntu

# apt-get install apt-transport-https ca-certificates curl software-properties-common -y

Here is what the above code is Doing:
1. Update the apt package index:
sudo apt-get update

2. Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

3. Add Docker’s official GPG key:
curl -fsSL | sudo apt-key add –

4. Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
sudo apt-key fingerprint 0EBFCD88

5. Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.
sudo add-apt-repository “deb [arch=amd64] $(lsb_release -cs) stable”

6. Update the apt package index.
sudo apt-get update

7. Install the latest version of Docker CE, or go to the next step to install a specific version:
sudo apt-get install docker-ce

8. Verify that Docker CE is installed correctly by running the hello-world image.
sudo docker run hello-world

9. Add your username to the docker group with the following command. You can log out and log back in again for this to take effect, or you can type the following:
sudo usermod -aG docker ${USER}

10. Verify that you can run docker commands without sudo.
docker run hello-world

Similar Posts