Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 544 Bytes

docker.md

File metadata and controls

38 lines (26 loc) · 544 Bytes

Docker

Create an image

docker build --platform [linux/amd64|linux/arm64] -t NAME_OF_IMAGE .

Inspect to get information about the image

docker inspect NAME_OF_IMAGE

Tag to push to hub

docker tag NAME_OF_IMAGE:TAG USERNAME/NAME_OF_REPOSITORY:TAG

Pull from hub

docker pull USERNAME/NAME_OF_REPOSITORY

Run container in background

docker run -d -p 3200:3000 USERNAME/NAME_OF_REPOSITORY

More

docker ps # See containers
docker images # See images