This guide provides steps on how to import and run the Docker container for the Assignment System.
- Ensure you have Docker installed and running on your system.
If you have the Docker image saved as a .tar file, you can import (load) it into your local Docker environment.
Open your terminal or command prompt and run:
docker load -i assignment_system_image.tar(Note: Replace assignment_system_image.tar with the actual name of your tar file if it differs.)
To verify that the image has been successfully imported, you can list your Docker images:
docker imagesYou should see the imported image in the list.
Once the image is loaded, you can run the container using the docker run command.
docker run -d -p 8080:8080 --name assignment_system_container <image_name>-d: Runs the container in detached mode (in the background).-p 8080:8080: Maps port 8080 on your host machine to port 8080 inside the container. Adjust these ports if your application uses a different port.--name: Assigns a custom name (assignment_system_container) to your running container.<image_name>: Replace this with the actual name/tag of the image you imported (e.g.,assignment_system:latest).
To check the status of your running container:
docker psYou should see assignment_system_container in the list of running containers.
To stop the running container:
docker stop assignment_system_containerTo start the container again:
docker start assignment_system_containerIf you need to troubleshoot or view the application's output, you can check the container logs:
docker logs assignment_system_container