how to login to docker container code example
Example 1: docker access container
docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpine
Example 2: docekr enter container
docker exec -it [container-id] bash
Example 3: how to docker login
$ docker login --username=maryatdocker [email protected]
Password:
WARNING: login credentials saved in C:\Users\sven\.docker\config.json
Login Succeeded