Skip to content

Very beginner user. Problems running container in Docker #138

Answered by AbhijithMoni
agusbuffa asked this question in Q&A
Discussion options

You must be logged in to vote

Use the following command to run your Docker image. Replace 'mdolab' with your desired name, 'E:\MDO\CRM_Wing' with the source path on your host machine, and 'u18-gcc-ompi-latest' with your image ID.

$ docker run -it --name mdolab --mount "type=bind,src=E:\MDO\CRM_Wing,target=/home/mdolabuser/mount/" mdolab/public:u18-gcc-ompi-latest /bin/bash

If you have a docker desktop running, you can monitor the creation of a new container named 'mdolab'.

Once the Docker container is running, navigate to the mounted directory.

$cd mount

List the files inside your mounted directory.

$ls

Image ID

Hope this helps.

Abhijith

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agusbuffa
Comment options

Answer selected by agusbuffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants