26 lines
499 B
Markdown
26 lines
499 B
Markdown
# flake-rust-docker
|
|
|
|
## Building
|
|
|
|
```sh
|
|
> nix build .#packages.x86_64-linux.dockerImage
|
|
> podman load < result
|
|
> podman run -ti localhost/hello-world:latest
|
|
Hello, world!
|
|
```
|
|
|
|
## Developing
|
|
|
|
```sh
|
|
> nix develop
|
|
$ gunzip --stdout result > /tmp/image.tar && dive docker-archive:///tmp/image.tar
|
|
... this will open dive
|
|
|
|
$ sudo $(which dockerd)
|
|
$ sudo chown -R 1000:1000 /var/run/docker.sock
|
|
$ docker load < result
|
|
Loaded image: hello-world:latest
|
|
$ docker run -ti hello-world:latest
|
|
Hello, world!
|
|
```
|