Git Product home page Git Product logo

dockerc's People

Contributors

nilsirl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dockerc's Issues

What should I do to support CUDA?

I am using this project to run a project like stable-diffusion that requires CUDA support, but I cannot use --gpus all to specify GPU. What should I do?

Build fails

Hi! Running the build command from the readme resulted in an error:

zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl 
warning: deprecated. call std.Build.path instead
warning: deprecated. call std.Build.path instead
install
└─ install dockerc
   └─ zig build-exe dockerc ReleaseSafe x86_64-linux-musl 1 errors
src/dockerc.zig:12:35: error: unable to open 'tools/skopeo': FileNotFound
const skopeo_content = @embedFile("tools/skopeo");
                                  ^~~~~~~~~~~~~~
referenced by:
    main: src/dockerc.zig:33:67
...

Apparently this directory was recently deleted, so this might need some adjustments!

Fails to umount

At the end of running at times it fails to umount with "target busy" as the reason.

Add arm64 support

Ideally it standardizes the way we compile the tools we need instead of just shipping binaries...

zig 0.11.0: dockerc/build.zig:41:13: error: no field named 'root_module' in struct 'Build.Step.Compile'

Warning: I know this is currently unsupported.

  1. I'm on MacOS
  2. I'm on arm64/aarch64

I just wanted to see if I could help "simply" add support for either/both

$ zig build -Doptimize=ReleaseSafe
/Users/brandon/Desktop/dockerc/build.zig:41:13: error: no field named 'root_module' in struct 'Build.Step.Compile'
    dockerc.root_module.addAnonymousImport("runtime", .{ .root_source_file = runtime.getEmittedBin() });
            ^~~~~~~~~~~
/Applications/zig-macos-aarch64-0.11.0/lib/std/Build/Step/Compile.zig:1:1: note: struct declared here
const builtin = @import("builtin");
^~~~~
referenced by:
    runBuild__anon_6653: /Applications/zig-macos-aarch64-0.11.0/lib/std/Build.zig:1638:27
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

Not sure if I need to be on zig nightly instead of zig 0.11.0 or what. Not sure where to get stared on supporting either platform.

chown `/dev/pts/0`: Invalid argument

What is wrong?

dockerc --image docker://gander/dev:8.3 --output gander-dev
./gander-dev
2024-03-08T12:50:46.663596Z: chown `/dev/pts/0`: Invalid argument

Add a license?

I'd love to use this but can't without a license file in here. Any chance you'd mind adding one?

Memory leak when using podman

out

The binary release 0.2.1 seems to keep spawning new processes, filling up memory until the OOM killer gets it when used in combination with podman.

Command used

./dockerc --image containers-storage:alpine --output alpine

Gif demonstrating should be attached. This happens on arch (6.6.25-1-lts) and ubuntu 22.04 with every podman image i tried.

I wasnt able to compile from source yet but if thats necessary lmk.

Usage of -e and -v flags when generating the binary

Hi,
Cool project. I notice in the documentation it mentions that you can use -e and -v as you would with docker run commands. Can you please provide an example of this usage? I have tried placing those flags before and after the --image flag and each time I get an error that the arguments are invalid.

dockerc --image docker://codeberg.org/sentryshot/sentryshot:latest -e TZ=America/New_York -v ./configs:/app/configs -v ./storage:/app/storage --output sentryshot 
Invalid argument '-e'
error: InvalidArgument

dockerc -e TZ=America/New_York -v ./configs:/app/configs -v ./storage:/app/storage --image docker://codeberg.org/sentryshot/sentryshot:latest --output sentryshot
Invalid argument '-e'
error: InvalidArgument

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.