Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanleantking/37243f8d6243e7e22af1adf37bdf10b1 to your computer and use it in GitHub Desktop.
Save vanleantking/37243f8d6243e7e22af1adf37bdf10b1 to your computer and use it in GitHub Desktop.
docker run single service in docker compose file
docker-compose up -d --no-deps --build app
@vanleantking
Copy link
Author

docker build single service in docker compose:
docker compose build app

@vanleantking
Copy link
Author

docker show details log in terminal container:
docker logs 4204e3fa8559

4204e3fa8559 => container id

@vanleantking
Copy link
Author

force re-create docker images

  1. cd project_path
  2. docker-compose up --build --force-recreate -d

@vanleantking
Copy link
Author

list all port active window
netstat -anv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment