DOCKER INSTALLATION PROCESS:

To install Docker on Ubuntu, in the terminal window enter the command

$ sudo apt install docker.io

The Docker service needs to be setup to run at startup

$ sudo systemctl start docker

$ sudo systemctl enable docker

To verify the installed Docker version number

$ docker –version

Alternative: Install Docker from Official Repository

Download Dependencies

 Docker mysql :

$ docker run –name=test-mysql mysql

Run –>for run the container

–name –> container name

Check the containers

$ docker ps –>show the running  containers

$docker images —>docker hub

$ docker ps -a –>status check

$ docker run –name=test-mysql –env=”MYSQL_ROOT_PASSWORD=mypassword” mysql —> name based create mysql

$ docker rm test-mysql —> remove the test-mysql

$ docker stop test-mysql –> stop the container

$ docker logs test-mysql → mysql container logs check