Code Monkey home page Code Monkey logo

Comments (3)

MrMino avatar MrMino commented on June 2, 2024

Hi @marcelned. Dockernel uses Docker API (the Python library), not Docker CLI, and so substituting docker command with podman will have no effect.

It might be that I'm completely misunderstanding the issue, but I'm going on a vacation shortly, so I'm unable to analyze this deeper.

I haven't used podman, but if you'd like dockernel to support it - I'll consider looking into it. That will have to wait until I can shift my focus back onto dockernel, as currently I'm a bit busy with other projects.

from dockernel.

marcelned avatar marcelned commented on June 2, 2024

I got it working manually by adapting from this answer

kernel.json:

{
 "argv": [
  "/usr/bin/podman",
  "run",
  "--rm",
  "--network=host",
  "-v",
  "{connection_file}:/connection-spec:z",
  "-v",
  ".:/work:z",
  "localhost/pyspark:3.2",
  "python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "/connection-spec"
 ],
 "display_name": "spark-env",
 "language": "python"
}

Adding the current work directory to bind as volume, with /work set as WORKDIR in dockerfile, works like a charm.

from dockernel.

MrMino avatar MrMino commented on June 2, 2024

Looks like Podman actually comes with a REST API. The claim is that it is similar to that of Docker, so it should be possible to marry Dockernel with it.

I'll make sure to steer the source code towards enabling backend plularity, but I conside the implementation of Podman as a backend a low priority for now.

from dockernel.

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.