Giter Club home page Giter Club logo

Comments (6)

pauleve avatar pauleve commented on June 18, 2024 2

You have two options:

  • either you can bind your host filesystem to the docker container by adding -v /host/path:/container/path to run-mtgo call ; /mnt or /tmp/host are examples of common container paths you may use.
  • or, you can use docker cp to transfer data from/to the container while it is running. For instance

From docker to your computer

docker cp mtgo_running:/home/wine/mydeck.dek mydeck.dek

will export the file you saved from MTGO in /home/wine/mydeck.dek (Desktop/My Documents)

From computer to docker

docker cp mydeck2.dek mtgo_running:/home/wine/mydeck2.dek

will import the file from your computer in the container, accessible from MTGO in Desktop/My Documents

Here mtgo_running is the name of the container, which is set by run-mtgo.

Hope that helps!

from docker-mtgo.

JeffHoogland avatar JeffHoogland commented on June 18, 2024 1

The easiest way to is modify the run-mtgo script. For example I added this to opts:

-v /media/Storage:/mnt

Which mounted me /media/Storage on my host system to /mnt on the docker image.

from docker-mtgo.

JeffHoogland avatar JeffHoogland commented on June 18, 2024

Thank you!

from docker-mtgo.

kylesnowschwartz avatar kylesnowschwartz commented on June 18, 2024

Hi, I'm running into the same issue and having trouble understanding the commands necessary to move a deck I exported from MTGO onto my Ubuntu host machine.

kyle@kyle-thinkpad:~$ touch tokens.txt
kyle@kyle-thinkpad:~$ cat tokens.txt | sudo docker exec -i mtgo_running tee tokens.txt >/dev/null

After running the following, my tokens.txt on my host machine is still an empty file. Am I misunderstanding the instructions?

I think the problem may be that the .txt files are being saved to C:\users\wine\Desktop\tokens.txt but I don't see how to save to /home/wine but I'm unsure. Thanks for any suggestions and thanks for this awesome project!

from docker-mtgo.

pauleve avatar pauleve commented on June 18, 2024

Hi, I've updated my answer to makes things clearer.
If you want to go from docker to your computer, you should use the cat command (and from your computer to docker the tee command).
I think the /home/wine can be accessed by using "Desktop/My Documents" in the left pane when you browse files with MTGO ; correct me if I'm wrong and I'll update my answer (otherwise, "Desktop > / > home > wine).

from docker-mtgo.

kylesnowschwartz avatar kylesnowschwartz commented on June 18, 2024

Thanks @JeffHoogland, figured it out with the following command:

sudo ./run-mtgo -v /home/kyle:/mnt

Thanks for the suggestion.

from docker-mtgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.