move2kube: UI image does not work with Podman

Describe the bug

The instructions (README.md file) describe how to start the UI using docker but it does not include how to do it with podman. When I started the container, the UI is available but any operation works (e.g: create an application, upload an artifact).

To Reproduce Steps to reproduce the behavior:

  1. Start the UI image with podman
~/Workspaces/ws-konveyor 
❯ mkdir -p workspace && cd workspace
Workspaces/ws-konveyor/workspace 
❯ podman run -p 8080:8080 -v $PWD:/workspace -it quay.io/konveyor/move2kube-aio:latest
  1. See error:
FATA[0000] failed to setup the handlers. Error: "failed to make the workspaces metadata directory at path /workspace/data/metadata/workspaces . Error: \"mkdir /workspace/data: permission denied\"" 
[info   ] starting move2kube-ui in production mode.... 
[HPM] Proxy created: /  -> http://localhost:9000
[info   ] authentication is disabled 
[info   ] listening on port 8080 

Expected behavior

Not FATAL messages and UI working successfully.

Desktop (please complete the following information):

  • OS: Fedora Workstation 34
  • Version: move2kube-aio:latest container image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

Thanks @rmarting . Sure. Absolutely. We do understand. Thanks for your collaboration. Glad to have your contributions.

Please do let us know if you have any other suggestions for improvement too.

@rmarting I was able to get it working by running it in privileged mode

podman run --privileged --rm -it -p 8080:8080 -v "$PWD/data:/move2kube-api/data" quay.io/konveyor/move2kube-ui:latest
INFO[0000] Starting Move2Kube API server at port: 8080

Seems similar to this issue https://github.com/containers/podman/issues/10460#issuecomment-848262737 and https://github.com/containers/podman/issues/10460#issuecomment-848854362