docker build .builddocker build -t repo:tag .build with tagdocker imageslistdocker inspect image_idinspectdocker rmi image_iddeletedocker run image_idcreate + startdocker tag image_id repo:tagtag
docker create image_idcreatedocker exec -it container_id bashexec bashdocker pslist runningdocker ps -alist alldocker start container_idstartdocker stop container_idstopdocker cp container_id:/path/file/ /path/filecopies file out of containerdocker rm container_iddelete container
docker-compose uptbddocker-compose buildtbd
Layer indicates changes that are made to an image.
FROM rails:onbuild < Base-layer
ENV RAILS_ENV production < layer 2
ENTRYPOINT ["bundle", "exec", "puma”]< layer 3