S
S
sha2562018-12-28 20:29:36
Docker
sha256, 2018-12-28 20:29:36

Docker-compose why doesn't container start from docker-compose.yml?

Hello!
I started using docker, built a base image with centos, I try to describe docker-compose.yml, but after execution, the
docker-compose up
Container is created and goes offline.
When you try to restart, nothing happens. Attach also fails.
If I do:
docker run -it test_image
everything starts without problems.
Tell me what could be the problem?
This is what yml looks like.

version: '3.3'

my-test:
  image: test_image

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Samoilov, 2018-12-28
@takezi

version: '3'
services:
  my-test:
    image: test_image

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question