Skip to content

Dual-line MOTD with docker-compose #1852

Answered by itzg
Ahptt asked this question in Q&A
Dec 2, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Newlines in server properties values need an extra backslash to escape the backslash 😃

This

version: "3"

services:
  mc:
    image: itzg/minecraft-server
    environment:
      EULA: "true"
      MOTD: "line one\nline two"
    ports:
      - "25565:25565"

results in

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Ahptt
Comment options

@itzg
Comment options

@Pyroglyph
Comment options

@itzg
Comment options

@itzg
Comment options

Answer selected by Ahptt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants