HexDocker User Guide V1.0
Importing Images
Method 1: Importing from Docker Hub
(using hex-docker-noetic-basic
as an example)
-
Open the terminal and check if the image
hexfellow/hex-docker-noetic-basic
exists in the current environment:docker image list
-
Use
docker pull
to obtain the image:docker pull hexfellow/hex-docker-noetic-basic:latest
-
Check if the image has been imported correctly:
docker image list
Method 2: Importing from .tar
Image (using hex_docker_noetic_basic.tar
as an example)
-
Open the terminal and check if the image
hex_docker_noetic_basic:latest
exists in the current environment:docker image list
-
Ensure that the packaged image exists in the directory:
ls
-
Run the following command to import the image:
docker load -i hex_docker_noetic_basic.tar
-
Check if the image has been imported correctly:
docker image list
Basic Usage of HexDocker
Preparation (using hex_noetic_basic
as an example)
-
Run the
start.sh
:cd ~/hex_docker/docker_shell
chmod +x start.sh
./start.sh
-
Use the following command to enter the
container
and start using it:docker attach hex_noetic_basic
Basic Operations
-
The usage of the
container
is essentially the same as normal command line usage. -
If you want to run multiple programs, you can use
tmux
. Refer to the tutorial for usage instructions. -
To suspend the current
container
, pressCtrl+p
, thenCtrl+q
.You can restore it with the following command:
docker attach hex_noetic_basic
-
To exit the current
container
, simply typeexit
.After exiting, if you want to restart the
container
, you need to use the following command (at this point, thecontainer
is in a stopped state):docker start hex_noetic_basic