how to run docker container - tingxingdong/clBLAS-private GitHub Wiki
Suppose users have already been familiar with the basic concept of docker.
sudo docker pull DOCKER_IMAGE_NAME
make a docker configure file docker-compose.yml
In the yml file, give a container name, set the mounted files system, etc. See an [example] (https://github.com/clMathLibraries/rocm-jenkins/blob/master/docker-compose.yml)
sudo docker-compose run -d CONTAINER_NAME
You would be directed into the container, but do not run anything. type exit.
sudo docker ps -a
to see the associated CONTAINER_NAME_ASSIGNED
sudo docker start CONTAINER_NAME_ASSIGNED
sudo docker exec -t -i CONTAINER_NAME_ASSIGNED /bin/bash
You would be in the container again, do whatever you want
exit
Next time, you can re-log in with "sudo docker exec -t -i CONTAINER_NAME_ASSIGNED /bin/bash"
sudo restart docker
sudo docker ps -a
sudo docker create (create one container but does not start)
sudo docker rm (remote a container)
sudo docker start/stop (start/stop a container)
sudo docker attach (connect to a running container which must be alive) create a docker container with MY_IMAGES and enter it
sudo docker run -it --rm --device "/dev/kfd" MY_IMAGES env TERM=xterm-color bash -l