1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Containerization and Virtualization Concepts

Connected

Bài tập

Building and running a Docker container

This final exercise highlights the difference between a Docker image and a Docker container, and shows the use of both Docker components in action. The exercise will help you familiarize yourself with key Docker commands to build and run containerized applications consistently across different environments.

Using a simple Dockerfile, you will now create a Docker image and run a container based on that image.

Hướng dẫn 1/2

undefined XP
    1
    2
  • Using the interactive CLI, write and execute (Enter key) the Docker command docker build to build a Docker image from the current folder (with . as the context argument).