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

[FEATURE]建议加入Podman支持并逐步替换Docker #1070

Open
wenyinos opened this issue May 17, 2023 · 4 comments
Open

[FEATURE]建议加入Podman支持并逐步替换Docker #1070

wenyinos opened this issue May 17, 2023 · 4 comments

Comments

@wenyinos
Copy link

wenyinos commented May 17, 2023

1Panel 版本

1.2.3

请描述您的需求或者改进建议

从RedHat Enterprise 8开始,包括衍生的Rocky/Alma等发行版,均不再提供原版的Docker,用Podman代替,需要安装Centos stream的包才可以。

docker作为商业公司,已经有过删除开源组织镜像的行为,长远看后续可能有许可证风险,建议逐步用纯开源的Podman做替代。

请描述你建议的实现方案

支持podman之前,可使用如下方法在不支持的发行版上面安装Docker:
https://wiki.wenyinos.com/index.php/2023/05/17/install-docker-on-support-podman-only/

附加信息

No response

@wanghe-fit2cloud
Copy link
Member

感谢反馈,我们会在后面版本中考虑支持 Podman。

@maninhill
Copy link
Collaborator

请问这个问题有进展吗?

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is there any progress on this issue?

@amuhareb
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Is there any progress on this issue?

Hello! I actually just figured this out(with the help of AI of course haha)

this worked perfectly:

  1. Install Podman Docker compatibility package

    sudo dnf install podman-docker
  2. Enable and start Podman socket

    sudo systemctl enable podman.socket
    sudo systemctl start podman.socket
  3. Create Docker compatibility symlink

    sudo ln -sf /usr/bin/podman /usr/bin/docker
  4. Create Docker socket directory

    sudo mkdir -p /var/run/docker
  5. Create Docker socket symlink

    sudo ln -sf /run/podman/podman.sock /var/run/docker.sock
  6. Set socket permissions

    sudo chmod 666 /run/podman/podman.sock
  7. Verify the setup is working

    systemctl status podman.socket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@wenyinos @amuhareb @maninhill @wanghe-fit2cloud and others