{"id":22004369,"url":"https://github.com/javascriptlove/dockerref","last_synced_at":"2026-05-04T19:33:40.375Z","repository":{"id":147739309,"uuid":"42940254","full_name":"javascriptlove/dockerref","owner":"javascriptlove","description":"This repo has the Docker most valuable commands","archived":false,"fork":false,"pushed_at":"2015-11-25T09:29:53.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T06:24:14.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javascriptlove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-22T14:49:28.000Z","updated_at":"2015-09-22T14:49:28.000Z","dependencies_parsed_at":"2023-04-14T04:55:57.934Z","dependency_job_id":null,"html_url":"https://github.com/javascriptlove/dockerref","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javascriptlove/dockerref","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascriptlove%2Fdockerref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascriptlove%2Fdockerref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascriptlove%2Fdockerref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascriptlove%2Fdockerref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javascriptlove","download_url":"https://codeload.github.com/javascriptlove/dockerref/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javascriptlove%2Fdockerref/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32621867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T00:15:39.462Z","updated_at":"2026-05-04T19:33:40.334Z","avatar_url":"https://github.com/javascriptlove.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker reference\n\nDisplay all running containers\n```\ndocker ps\n```\n\nDisplay all created containers\n```\ndocker ps -a\n```\n\nDisplay the docker IP address (useful when a pack is built with docker-compose)\n```\nboot2docker ip\n```\n\nDelete all docker containers\n```\ndocker rm -f $(docker ps -q -a)\n```\n\nDelete all docker images\n```\ndocker rmi -f $(docker images -q)\n```\n\nShow running containers\n```\ndocker ps\n```\n\nRun **myimagename** in a container named **mycontainer** and set the label **com.example.server** value to **server1**\n```\ndocker run --name mycontainer -l com.example.server=server1 myimagename\n```\n\nGet image name based on the label value\n```\ndocker ps --format=\"{{.Image}}\" --filter=\"label=com.example.server=server1\"\n```\n\nGet container name based on the label value\n```\ndocker ps --format=\"{{.Names}}\" --filter=\"label=com.example.server=server1\"\n```\n\n## Change the docker virtual machine size\n\nIf you don't have the **~/.boot2docker/profile** file yet,  \n```\nboot2docker config \u003e ~/.boot2docker/profile\n```\n\nThen, in the new **~/.boot2docker/profile** file, change the size  \n\n```\nDiskSize = 50000\n```\n\nThen reinstall boot2docker\n\n```\nboot2docker poweroff\nboot2docker destroy\nboot2docker init\nboot2docker up\n```\n\n## Docker IP Address\n\n```\ndocker inspect --format='{{.NetworkSettings.IPAddress}}' CONTAINER_NAME\n```\n\n## Route to Docker\n\n```\nsudo route -n delete 172.17.0.0/16\nsudo route -n add 172.17.0.0/16 `boot2docker ip`\n```\n\n## SSH access to docker\n\n```\ndocker exec -it CONTAINER_ID bash\n```\n\n## SSH access to boot2docker\n\n```\nboot2docker ssh\n```\n\n## An error occurred trying to connect: Get https://xx:xx/v1.20/containers/json: x509: certificate is valid for 127.0.0.1, xx, xxx, not xxxx \n\nFirst, try ```boot2docker upgrade``` because there was a known bug before 1.7.1.\n\nThen, finally, if it doesn't work, disable all certificate checks\n\n```\nalias docker=\"docker --tlsverify=false\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavascriptlove%2Fdockerref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavascriptlove%2Fdockerref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavascriptlove%2Fdockerref/lists"}