podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Suport to up specific service|pod with `podman-compose -f $FILE up $MY_SERVICE`

Open paulopatto opened this issue 4 years ago • 2 comments

Hi, I'm working on a project using docker-compose files and as I'm using fedora 31, podman is a default container tool.

Now I'm trying start a service with: podman-compose -f $FILE0 -f $FILE1 ... up $SPECIFIC_SERVICE and receiving the message: NotImplementedError: starting specific services is not yet implemented.

Two points:

  • Have a roadmap to implements one?
  • Exist a workaround to avoid this error and not need back to use docker-compose?

paulopatto avatar Mar 13 '20 22:03 paulopatto

As a workaround you could use some simple shell scripts. Here's an example of one I used:

#!/bin/bash
podman run --detach \
  --name devenv \
  --security-opt "seccomp=unconfined" \
  --tmpfs /tmp \
  --tmpfs /run \
  --tmpfs /run/lock \
  --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
  --volume '../../:/home/amigo/unity' \
  --publish "127.0.0.1:2222:22" \
  --publish "127.0.0.1:3000:3000" \
 devenv-img

markstos avatar Jun 23 '20 13:06 markstos

Are there any news on this?

Cabeda avatar Sep 02 '21 09:09 Cabeda