Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman instead of Docker #756

Closed
deadeyesky opened this issue Dec 23, 2023 · 5 comments
Closed

Podman instead of Docker #756

deadeyesky opened this issue Dec 23, 2023 · 5 comments
Labels
bug Something isn't working daemon Include change in `bin/nanocld` enhancement New feature or request good first issue Good for newcomers

Comments

@deadeyesky
Copy link

Is your feature request related to a problem? Please describe.
Not quite. All I was thinking is having this work with Podman so that I can migrate my existing architecture to it to make it more secure and lightweight.

Describe the solution you'd like
I want there to be a guide on how to use Podman (rather than Docker) as the container ecosystem for Nanocl to be installed on.

Describe alternatives you've considered
Not applicable.

Additional context
When I run sudo nanocl install --docker-host unix:///run/podman/podman.sock I am able to install on to Podman, but when I try to run a service or start a container it throws a strange error:

$ nanocl cargo run my-cargo nginx
[404 Not Found] v0.12.0 is not supported

I understand that this may have to do with a version issue, but I thought I should include it so that a tutorial could be made on how to install it correctly.

@deadeyesky deadeyesky added the enhancement New feature or request label Dec 23, 2023
@leon3s
Copy link
Member

leon3s commented Dec 24, 2023

Hey thanks for the report i will take a look into it!
Would you like to work on the documentation for it ?

@leon3s leon3s added bug Something isn't working good first issue Good for newcomers daemon Include change in `bin/nanocld` labels Dec 24, 2023
@leon3s
Copy link
Member

leon3s commented Dec 27, 2023

I was able to install and use it with ease using the v0.13-nightly on Podman.
The error you got is because you probably have an outdated version of the daemon.
Can you run a

nanocl version

@leon3s
Copy link
Member

leon3s commented Dec 28, 2023

I have updated the doc to mention podman, the last stable version should work properly with it now!

@deadeyesky
Copy link
Author

deadeyesky commented Dec 30, 2023

I was able to install and use it with ease using the v0.13-nightly on Podman. The error you got is because you probably have an outdated version of the daemon. Can you run a

nanocl version

Yep I got 0.13.0 installed and it seems to install except it gave me a /run/nanocl/nanocl.sock: Connector has been disconnected error. Any remedy for this or do you think that I should try to reinstall? Perhaps a subsidiary to this whole project would be an advanced log folder to show the installation process or something, unless it already has that.

@leon3s
Copy link
Member

leon3s commented Dec 30, 2023

The best you can do right now is:

nanocl uninstall --docker-host unix:///run/podman/podman.sock
# Remove old state
sudo rm -rf /var/lib/nanocl
nanocl install --docker-host unix:///run/podman/podman.sock

@leon3s leon3s closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working daemon Include change in `bin/nanocld` enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants