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 ?
Catégorie: Ubuntu Server
(SOLVED) 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 ?
(SOLVED) How to kill a process on a port on ubuntu ?
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 :
(SOLVED) How to Check Available Memory in Ubuntu Server ?
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
(SOLVED) How to install JDK 11 on Ubuntu ?
To install openjdk-11 (JDK) on ubuntu you can use the following command : Read also : how to install docker on ubuntu ?
(SOLVED) how to get docker container logs ?
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 :
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 :
How to close Ubuntu Server bash without stopping my spring boot application instance ?
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 […]
Download Free SFTP, FTP Client for accessing to Ubuntu server FTP
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
(SOLVED) How to Install MySQL on Ubuntu server ?
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: