You can run any command (docker exec command) in a running container just knowing its ID (or name) using the following command : Read also : How to get list of docker containers ?
The following command enable you to get the list of containers in your local : Read also : How to run docker instance using container Name ?
If you need to kill a process in the command line for a specific port in ubuntu. you can use the following command : If that doesn’t work you could also use $() for command interpolation :
The free command The free command is the most widely used and without any doubt the most helpful, we will mention its usage first. This command is used to check information about the RAM usage by your system. Here is the command you will enter in the Terminal : For more other ways go here
To install openjdk-11 (JDK) on ubuntu you can use the following command : Read also : how to install docker on ubuntu ?
If you need to get a docker container logs , you have to run the following commands : with this command we will get all the running container list to get the id of the container : Then we will use this id to get the logs :
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 :
If you deploy a java application in Ubuntu Server and you need to close the instance of shell script without stopping your application , you need to run your application through a script, it mean don’t execute your app directedly with the command : Just create a script.sh : Then execute the script with the […]
(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 […]
WinSCP is a free and open-source SFTP, FTP, WebDAV, Amazon S3 and SCP client for Microsoft Windows. Its main function is secure file transfer between a local and a remote computer. If you want to access to your Ubuntu server File Manager , download WinSCP for free from here : Download
To install MySQL on your Ubuntu server follow the steps below: 1. First, update the apt package index by typing: 2. Then install the MySQL package with the following command: 3. Once the installation is completed, the MySQL service will start automatically. To check whether the MySQL server is running, type: