Solution : How to install Docker on Ubuntu server ?

To install Docker on Ubuntu we need to start by updating ubuntu packages : Then we will install the following packages : apt-transport-https, ca-certificates, curl , gnupg-agent, software-properties-common Then we install docker : Now we can check the docker version using :

En Lire Plus

(SOLVED) The program ‘docker’ is currently not installed. You can install it by typing: sudo apt-get install docker

Problem : When you install Docker with the command : and you try to run docker it gives the following error !! The program ‘docker’ is currently not installed. You can install it by typing: sudo apt-get install docker Solution : Add Dependencies Add docker gpg key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – (Security […]

En Lire Plus

(SOLVED) Gitlab CI – docker: command not found

If you get this error in the job of GitLab CI The solution is : To run Docker commands in your CI/CD jobs, you must configure GitLab Runner to enable docker support. To enable it, there are three ways to enable the use of docker build and docker run during jobs : The shell executor The Docker […]

En Lire Plus

How to list containers in Docker ?

Docker How to list containers ? In Docker, we can use docker ps to show all running containers, docker ps -a to show all running and stopped containers. Here are some of the commonly used examples : Terminal What is ps ? The ps stands for process status. On Docker, it shows the status of […]

En Lire Plus

How to copy files from docker container to host?

In this article, we will show you how to use docker cp to copy files or folders from a docker container to the host (local file system) or the reversed. For example, here is a running container, id is d362659da5fc, later we will copy files from and to this container. The docker cp command works […]

En Lire Plus

Java 11 shebang example in Docker

Java 11 shebang example in Docker : In Java 11, JEP 330 adds support to run single-file source code directly. Terminal : This indirectly supports the Java single-file program to run as a script using Unix Shebang. For example, run below .sh file will print Hello World! run.sh : Make sure the !# is pointed to the […]

En Lire Plus