Skip to content

Instantly share code, notes, and snippets.

@Luvgreed
Created January 8, 2018 03:54
Show Gist options
  • Save Luvgreed/a5ab0f2a44a006dbfdd5e1399db84028 to your computer and use it in GitHub Desktop.
Save Luvgreed/a5ab0f2a44a006dbfdd5e1399db84028 to your computer and use it in GitHub Desktop.
docker build -t <image_name>:<tag> .
docker run -p <host_port>:<container_port> -d <image_name>:<tag>
docker ps
docker logs <container_id>
docker exec -it <container_id> <commands here : e.g. cd /usr/src/app >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment