Docker Cheat sheet

Author posted by Jitendra on Posted on under category Categories Salesforce and tagged as Tags , , , , with Leave a comment on Docker Cheat sheet

Frequently used docker commands and cheatsheet

Docker cheat sheet

Refer this url to get official cheat sheet for docker commands. Below are some of frequently used commands by me

Find all docker images installed on system

docker images

Find container id of currently running dockers

docker ps

Stop or kill running container

docker kill <container id from above command>

Install new image in Docker

docker pull <image name>

Pgadmin docker commands

Pgadmin is widely postgresql client

Install PostgreSQL

docker pull dpage/pgadmin4

Start PostgreSQL with default username and password

docker run -p 80:80 \
        -e "" \
        -e "PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
        -d dpage/pgadmin4

Phpmyadmin docker commands

phpmyadmin is popular mySQL client to access local or cloud based MySQL Servers

Install or pull phpmyadmin docker

docker pull phpmyadmin/phpmyadmin

Run phpmyadmin docker

docker run --name myadmin -d -e PMA_ARBITRARY=1 -p 8080:80 phpmyadmin/phpmyadmin PMA_PORT=3203

Related posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.