You are on page 1of 8

Docker (Activity-4)

•Docker is an open source software platform to


create, deploy and manage virtualized application
containers on a common operating system. 

•The Docker commands are how you interact with


Docker. You use Docker commands to build a Docker
image, run a Docker container.

•docker pull. Usage: docker pull <image name> ...


•docker run. Usage: docker run –it <image name> ...
Container Image
• When running a container, it uses an isolated
filesystem. This custom filesystem is provided
by a container image. Since the image
contains the container’s filesystem, it must
contain everything needed to run an
application- all dependencies, configurations,
scripts, binaries, etc. The image also contains
other configuration for the container, such as
environment variables, a default command to
run, and other metadata.
Open control pannel:
• Program and features
• Turn windows features on
• Windows subsystem for Linux ( click on).

Open CMD/POWER SHELL:


wsl –update.
FLAGS
• -i: i want to interact with container
• -t: t need output on terminal.
• -rm: remove from container after use.
• -p: code mapping to local host
For minesweeper
• docker build -t minesweeper
• docker run -it --rm -p 5000:5000 nadav42/minesweeper
+

You might also like