Giter Club home page Giter Club logo

Comments (3)

seantma avatar seantma commented on June 4, 2024

I would like to +1 on this.

Initially I thought I could point directly to the directory where the image should be placed, such as
-v /home/vagrant/temp (from the quoted code below).

But somehow the output .img couldn't be found anywhere. After multiple trials (and hair pulling), it seems you MUST have the :/output at the end of the placement directory in order to output the image:
-v /home/vagrant/temp:/output

Adding more confusion is the converted .img file is not placed in the /output directory, but rather in the /home/vagrant/temp directory instead.

$ docker run -v /var/run/docker.sock:/var/run/docker.sock
-v D:\host\path\where\to\ouptut\singularity\image:/output
--privileged -t --rm singularityware/docker2singularity
ubuntu:14.04

from docker2singularity.

vsoch avatar vsoch commented on June 4, 2024

hey @seantma and @rwtaylor is this still an issue for you? Have you tried singularity (native) without docker2singularity to produce your image?

singularity pull ubuntu.simg docker://ubuntu:14.04

from docker2singularity.

vsoch avatar vsoch commented on June 4, 2024

hey @seantma, the folder /output is inside the Docker image, and so you would get your custom location (on the host) by binding to it. Eg, when running the container, let's say I have /tmp/test on my host:

-v /tmp/test:/output

I bind to output. Note that for the recent PR for version 2.5.1 we are adding the ability to name the container (within this output directory). This should give you full control over the name. I'm closing the issue as it's over a year old but please open a new one with the latest branch if you have trouble. Thanks!

from docker2singularity.

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.