Skip to content

HexDocker User Guide V1.0

Importing Images

Method 1: Importing from Docker Hub (using hex-docker-noetic-basic as an example)

  1. Open the terminal and check if the image hexfellow/hex-docker-noetic-basic exists in the current environment:

    docker image list

    image.png

  2. Use docker pull to obtain the image:

    docker pull hexfellow/hex-docker-noetic-basic:latest

    image.png

  3. Check if the image has been imported correctly:

    docker image list

    image.png

Method 2: Importing from .tar Image (using hex_docker_noetic_basic.tar as an example)

  1. Open the terminal and check if the image hex_docker_noetic_basic:latest exists in the current environment:

    docker image list

    image.png

  2. Ensure that the packaged image exists in the directory:

    ls

    image.png

  3. Run the following command to import the image:

    docker load -i hex_docker_noetic_basic.tar

    image.png

  4. Check if the image has been imported correctly:

    docker image list

    image.png

Basic Usage of HexDocker

Preparation (using hex_noetic_basic as an example)

  1. Run the start.sh:

    cd ~/hex_docker/docker_shell

    chmod +x start.sh

    ./start.sh

    image.png

  2. Use the following command to enter the container and start using it:

    docker attach hex_noetic_basic

    image.png

Basic Operations

  1. The usage of the container is essentially the same as normal command line usage.

  2. If you want to run multiple programs, you can use tmux. Refer to the tutorial for usage instructions.

    image.png

  3. To suspend the current container, press Ctrl+p, then Ctrl+q.

    image.png

    You can restore it with the following command:

    docker attach hex_noetic_basic

    image.png

  4. To exit the current container, simply type exit.

    image.png

    After exiting, if you want to restart the container, you need to use the following command (at this point, the container is in a stopped state):

    docker start hex_noetic_basic

    image.png