top of page

In windows, push Windows button + R, and type "cmd"

Then type these docker commands for more information:

Docker -v

20200505_134353.jpg

the command "docker version"
gives even more information, so try that too if u want.

Docker ps -a

20200505_133505.jpg

                      information:

CONTAINER ID 915bf9d9041e 

IMAGE ese7en/node-port-test                     COMMAND  "node index.js"        

CREATED   38 hours ago        

STATUS   Up 38 hours            

PORTS 0.0.0.0:31400-31409- >31400-31409/tcp

NAMES stellar-dummy

If Status shows UP, the image in VirtualBox is running.

If Status shows EXITED, the image in VirtualBox is not running.

Docker logs -f CONTAINERID

20200508_023104_001.jpg
20200506_203609.jpg

To view the logs of a Docker container in real time

Docker exec -it CONTAINERID sh

20200507_120246.jpg

This command lets u enter the container, and see it running from the inside.

Once inside, type "top" .

This command shows processor activity of the docker container  and shows tasks managed by kernel in real-time.
Processor and memory use. 

Docker container port CONTAINERID

List port mappings or a specific mapping for the container

Docker container stats -a

20200508_024419.jpg

Display a live stream of all container resources usage statistics

To find the IP you must add to VirtualBOX port forward settings: 


ipconfig | grep IPv4


IPv4 Address.......... :192.168.0.213
IPv4 Address.......... :192.168.56.1

IPv4 Address.......... :192.168.99.1

 

The 1stip is the IP u use in VirtualBox port forwarding.

The 2nd is Virtual adapter #1 (VirtualBox)

The 3rd is virtual adapter #2      (VirtualBox)
 

20200520_144554.jpg

docker-machine ls

Check to see if your image is running

 

Some other docker commands

docker ps -a
docker logs pi-consensus
docker exec -it pi-consensus bash -c "stellar-core http-command info"
docker exec -it pi-consensus bash -c "stellar-core http-command info | grep state"
docker exec -it pi-consensus bash -c "stellar-core http-command info | grep authenticated_count"
docker exec -it pi-consensus stellar-core http-command peers
docker exec -it pi-consensus stellar-core http-command quorum
docker exec -it pi-consensus stellar-core http-command scp
docker exec -it pi-consensus bash -c "stellar-core test --all-versions"
docker exec -it pi-consensus bash -c "stellar-core check-quorum"

bottom of page