Difference between revisions of "Docker"

From Logic Wiki
Jump to: navigation, search
(Internal Docker URIs)
(Delete containers / images)
Line 16: Line 16:
 
Delete all containers using the following command:
 
Delete all containers using the following command:
 
  docker rm -f $(docker ps -a -q)
 
  docker rm -f $(docker ps -a -q)
 +
Delete all images
 +
docker rmi $(docker images -a -q)
 
Delete all volumes using the following command:
 
Delete all volumes using the following command:
 
  docker volume rm $(docker volume ls -q)
 
  docker volume rm $(docker volume ls -q)
 
Restart the containers using the following command:
 
Restart the containers using the following command:
 
  docker-compose up -d
 
  docker-compose up -d
 +
 
== Internal Docker URIs ==
 
== Internal Docker URIs ==
 
To access another docker container in the same machine (ie port 3003)
 
To access another docker container in the same machine (ie port 3003)

Revision as of 07:16, 14 September 2022


Local Registry

Setup Instructions : https://docs.docker.com/registry/deploying/

CI with Docker

https://circleci.com

Other 3rd Party registries

For 20 private repositories: https://www.canister.io/

Delete containers / images

Stop the container(s) using the following command:

docker-compose down

Delete all containers using the following command:

docker rm -f $(docker ps -a -q)

Delete all images

docker rmi $(docker images -a -q)

Delete all volumes using the following command:

docker volume rm $(docker volume ls -q)

Restart the containers using the following command:

docker-compose up -d

Internal Docker URIs

To access another docker container in the same machine (ie port 3003)

  • MAC :
http://host.docker.internal:3003
  • LINUX :
http://172.17.0.1:3003