I
I
Igor2019-09-12 15:55:49
Docker
Igor, 2019-09-12 15:55:49

Docker Linux containers? how to change container ip?

Good afternoon!
I'm not very good at network administration.
Why is the app not available at 0.0.0.0: on Windows?
The application, in principle, is not available on any ip
For example, it works on Linux.
Screenshot from windows
5d7a3fe6ee379441988890.png
As you can see from the screenshot, I explicitly specified the ip address
127.0.0.1:3600->3000/tcp,0.0.0.0:3600->3000/tcp
Docker-compose

...
  # Nuxt publication
  nuxt-public:
    container_name: cc.nuxt_public
    build:
      context: ./nuxt_public
      dockerfile: Dockerfile-dev
    volumes:
      - ./nuxt_public:/nuxt-app/
    ports:
      - "127.0.0.1:3600:3000"
    expose:
      - "3000"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2019-09-12
@IgorPI

The problem was solved only after I opened the 3000-4000 port range in Windows . I
left the docker-compose configuration the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question