G
G
ganjo8882020-07-18 15:03:30
Docker
ganjo888, 2020-07-18 15:03:30

How to raise a container in a specific stack?

my image, I start the container with my image
docker run --rm --name test test
I look at the raised container and there the stack is empty. How do I elevate a container with the correct stack name?

FROM php:7.4-fpm

COPY ./src /src
COPY ./.env /src
WORKDIR /src

RUN apt-get update && apt-get install -y \
    git \
    curl \
    libpng-dev \
    libonig-dev \
    libxml2-dev \
    libpq-dev \
    zip \
    unzip

RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install pdo_pgsql
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question