mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Docker image not working #27

Closed taiBsu closed 3 years ago

taiBsu commented 3 years ago

Hi, I was trying to make the docker image running by using docker-compose:

version: "3"

services:
  pastebin:
    image: mkaczanowski/pastebin
    container_name: pastebin
    ports:
      - "8023:8000" # since 8000 is already taken on my side
    networks:
      - mynetwork
    restart: always

networks:
  mynetwork:
    external: true

However, after running docker-compose up the container just quits after a couple of seconds without outputting anything.

Same for running docker pull mkaczanowski/pastebin and docker run --network host mkaczanowski/pastebin --address localhost --port 8000.

Is this an image-side issue or on my side?

Best, taiBsu

ronhanson commented 3 years ago

Hi, I have indeed the same problem. I'm on a Mac tho, and it does not work out of the box with a command line. Using network=host mode or even using port forwarding. A coworker managed to run it out of the box on its linux based OS tho. Maybe a MacOs thingy?

mkaczanowski commented 3 years ago

See: https://github.com/mkaczanowski/pastebin/commit/4c897063062300eb00b9ac983720f7f67e0cd1ad