Docker commands - jrcloudsolutions/tidbits GitHub Wiki
- Docker images - -digest
- Play with Dockerfile Scratch
- docker container ls -s/--size
- Put export and install command in the same layer
- apt-get update && apt-get install -y nginx
- Interactive built vs Dockerfile automated
- Instruction
- docker run -it image_name:tag_name bash <= Test bash shell
- Container names are randomly generated by the Docker “daemon”.
- You can identify your container with something more meaningful by assigning your own name using the – name operator in the Docker run command
- Save your image using the Docker commit command, specifying either the ID or name of the container from you which want to create it:
- $ docker commit keen_gauss ubuntu_testbed
- Apply yum update to Dockerfiles
- Yum update will update the packages on your system, but skip removing obsolete packages