Docker Commands

Once Updated the config:

docker-compose stop && docker-compose rm -vf && docker-compose up -d –build

List Processes:

docker ps -a

Bash Login to a container:

docker exec -it NameOrIdOfTheContainer bash

Inspect the Network:

docker network inspect nameofnetwork

Note: Name of network is found out by running “network ls” command

View the Network:

docker network ls

Run any command on the container:

Example: docker exec -it 88 mysql -uadmin -p

View any logs:

docker logs NameOrIdOfContainer

 

This entry was posted in Zend Framework. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>