Running Docker on a machine that is not connected to the internet

To run a Docker image on a machine that is not connected to the internet, you can follow these steps:

  • Prepare the Docker Image

On a machine with internet access, pull the Docker image:

docker pull impleo/stream-monitor:1.0.0
  • Save the Docker Image

Save the Docker image as a .tar file:


docker save -o stream-monitor.tar impleo/stream-monitor:1.0.0

This will create a tarball file of the image.

  • Transfer the Image to the Offline Machine Copy the .tar file to the offline machine using a USB drive, external storage, or local network file sharing.

  • Load the Docker Image on the Offline Machine

On the offline machine, load the Docker image from the .tar file:

docker load -i stream-monitor.tar
  • Run the Docker Container

Verify the image is loaded:

docker images

You can now run the Docker container using the loaded image.

Notes:

Ensure Docker is installed and properly set up on the offline machine.
If the container requires additional resources like volume mounts or specific configurations, make sure to prepare them in advance or adjust the docker run command accordingly.