If you have any problem, issue that!
After you clone this repo first, run this:
docker compose up --build -d--build: Build images before starting containers.-d,--detach: Detached mode: Run containers in the background.
Please check your
22and80ports. If they are occupied, the container will start failing.
How to Check Which Ports Are Open on a Windows 10 PC
This command does not build or rebuild the image. If you deploy first or update the dockerfile, read Build First.
docker compose up -dYou cannot login root with SSh. You need to use exec caommand to login. Run this:
docker exec -it debian bash-i,--interactive: Keep STDIN open even if not attached-t,--tty: Allocate a pseudo-TTYdebian: Container name.bash: Command.
You will learn Docker in this semester from NYCUSDC.
You can use SSH login into container.
ssh debian@localhostThe default password is
debian.
If you want to keep your changes and want temporary stop the container, do this:
docker compose stopIf you want to remove the container and your all changes, do this:
docker compose down