Comments (3)
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.
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.
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)
- Stop docker container after closing kernel HOT 5
- Restart docker container when restarting kernel HOT 1
- Improve error messages
- Document architecture
- Subcommand for adding a kernel on top of an already built image
- Package virtual environments / freeze (local work) into docker images?
- Consider alternative docker image atttribute as kernel_id HOT 2
- Support for "--gpus all" and other possible container properties HOT 1
- Extensions installed via pip not visible in "host" Jupyter HOT 1
- Cannot install example dockerfile HOT 3
- Location of karnels directory HOT 1
- How to mount a local directory? HOT 4
- Can't interrupt kernel cell
- Can't install HOT 1
- Kernel not found after selecting it
- .io page
- Remove / list dockernels
- Command 'None' in image 'my-docker-image' returned non-zero exit status when running on Windows HOT 10
- Make configurable file/directory bindings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockernel.