Blog

Blog

Docker Compose – Basic

Docker Compose - Basic

Commands

  • Start all services
docker-compose up
  • Stop all services
docker-compose down
  • Command to install Docker Compose
pip install -U docker-compose
  • Command to check the version of Docker Compose
docker-compose -v
  • Command to run docker compose file
docker-compose up -d
  • Command to list done all the process
docker-compose up -d --scale
  • Command to use YAML file to configure application services
docker-compose.yaml
  • Check logs
docker-compose logs

Terminal bracketed paste mode

Terminal bracketed paste mode

If you got some special characters when you paste a string into terminal, if they are at beginning or end of the string, then this could be bracketed paste mode caused issue.

Bracketed paste

The bracketed paste mode is to tell terminal that those strings are not typed in, they are pasted in. This can help software implemented action correctly, for example, auto indent mode should be disabled when pasting multiple lines into editor, such as vim.

In bracketed mode

If in bracketed mode, the ^[[200~ is added at beginning of string, the ^[[201~ is appended at end of string. For example, if paste string some test, terminal's app receives following string.

^[[200~some test^[[201~

Enable bracketed mode

To enable bracketed mode, run following command

printf "\e[?2004h"

Disable bracketed mode

To disable bracketed mode, run following command

printf "\e[?2004l"

References

Bracketed Paste Mode in Terminal

2021-12-26 – Changed to cheap shoes got better performance – First time

2021-12-26 - Changed to cheap shoes got better performance - First time

After changed shoes, which is only SGD15, from Decathlon, performance is quite good compare with my old Nike, quite surprise. In fact, the distance should be also a bit longer as recorded in other days, I always jogging in same route.

Result

Just changed cheap shoes