#1 Use -t with docker or podman to alleviate buffering issue
Merged 4 years ago by codeblock. Opened 4 years ago by pfrields.
fedora-docs/ pfrields/websites fix-container-output-buffering  into  master

@@ -46,17 +46,9 @@ 

  

  [source,bash]

  ----

- sudo docker run --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh

+ sudo docker run -t --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh

  ----

  

- [NOTE]

- ====

- This might take some time, and due to STDOUT buffering from Docker, it

- might look odd for a while (writing partial lines to your terminal

- until it is done). Just be patient and it should hopefully finish

- within a minute or so.

- ====

- 

  

  Notice here that we are mounting a volume (`-v`) in Docker which

  points to our check-out of the repository. We're referring to the
@@ -69,7 +61,7 @@ 

  

  [source,bash]

  ----

- sudo docker run --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0

+ sudo docker run -t --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0

  ----

  

  Note that we need `-p 5000:5000` so that we can access the development

no initial comment

Pull-Request has been merged by codeblock

4 years ago
Metadata