E
E
Evgeny Musonov2020-10-15 12:08:18
Docker
Evgeny Musonov, 2020-10-15 12:08:18

How to run an executable file of one container in another?

There is a simple docker-compose

version: "3.8"

services:
  swipl:
    build: ./swipl/docker-swish

  php:
    build: ./php
    volumes:
      - ./www:/var/www

I would like to execute swiplinside a php container. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-10-15
@fox_12

Make a common volume for both containers, and place the content that you are going to run there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question