SSH to docker container

docker exec -i -t nameofcontainer_or_containerid sh

Copying files from Docker container to host

docker cp <containerId>:/file/path/within/container /host/path/target

For example: sudo docker cp nameofcontainer_or_containerid:/app.jar .

Get IP of docker container

docker inspect -f '{{ range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' name_of_container

grep docker logs

docker logs nginx 2>&1 | grep "127." 

References