{"id":18709283,"url":"https://github.com/jojoee/docker-examples","last_synced_at":"2025-04-12T10:35:14.967Z","repository":{"id":91700506,"uuid":"63213744","full_name":"jojoee/docker-examples","owner":"jojoee","description":":tada: A Docker examples","archived":false,"fork":false,"pushed_at":"2019-01-03T07:12:02.000Z","size":254,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:51:10.591Z","etag":null,"topics":["docker","docker-compose","dockerfile","node","php","php-mysql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/jojoee.png","metadata":{"files":{"readme":"README-note.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-13T04:16:25.000Z","updated_at":"2023-08-03T06:39:19.000Z","dependencies_parsed_at":"2024-04-22T19:50:31.007Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/docker-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fdocker-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fdocker-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fdocker-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fdocker-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/docker-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553918,"owners_count":21123548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-compose","dockerfile","node","php","php-mysql"],"created_at":"2024-11-07T12:26:56.678Z","updated_at":"2025-04-12T10:35:14.960Z","avatar_url":"https://github.com/jojoee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What does `Docker` do ?\n- Packages a service into a standardized unit\n- Everything is included to make it run\n\n## Benefits of using Docker\n- Scale up quickly\n- Cross env consistency\n\n## Tools \u0026 Keywords\n- [boot2docker](http://boot2docker.io/): lightweight Linux distribution made to run Docker container\n- Application: an application (e.g. apacha, php, mysql, wordpress, laravel)\n- Docker Engine: create image and run container\n- Docker Compose: for running Docker multiple containers (docker-compose.yml)\n- [Docker Cloud](https://cloud.docker.com/): hosted service for building, testing and deploying Docker images to your hosts\n- Docker Image: an image contains everything (application) your service needs to run (made by Dockerfile)\n- Docker Container: a container is a running instance of an image (docker image)\n- Docker Machine: automate container provisioning on your network (like JVM for running Java)\n- Docker Client: a program used for play Docker\n- Docker Registry: is the store for Docker iamge (hosted registry service)\n- [Docker Hub](https://hub.docker.com/): public Docker Registry (like Github or `npm` for node)\n- Dockerfile is instructions to build Docker image\n- Docker Quickstart terminal app: terminal for running Docker\n- Kitematic: Docker GUI\n- Oracle VM VirtualBox: used for simulate `Linux` for using with Docker Machine\n- Docker Swarm:\n- Docker Master:\n- Docker Node:\n- Kubernetes:\n- Mesos:\n\n## Cli\n\n``` bash\nBasic\n$ docker run hello-world\n$ docker run busybox echo \"Hello world\"\n$ docker run ubuntu echo \"Hello world\"\n$ docker run docker/whalesay cowsay boo-boo\n$ docker run ubuntu apt-get install -y ping \u0026 ping google.com -c 2\n$ docker build -t jojoee/whalesay ./image/whalesay\n$ docker run jojoee/whalesay\n\nCli\n$ docker-compose build\n$ docker-compose build \u003cservice-name\u003e\n$ docker-compose up\n$ docker-compose up \u003cservice-name\u003e\n$ docker-compose up -d\n$ docker --help\n$ docker rmi \u003cimage-name\u003e\n$ docker rmi $(docker images -q -f dangling=true)\n$ docker rm -f \u003ccontainer-name\u003e\n$ docker rm -f $(docker ps -aq)\n$ docker rm -f \u003ccontainer-name\u003e \u0026 docker-compose build \u003cservice-name\u003e \u0026 docker-compose up -d \u003cservice-name\u003e\n$ docker-compose up -d \u003cservice-name\u003e\n$ docker log \u003ccontainer-name\u003e\n$ docker exec -it \u003ccontainer-name\u003e /bin/bash\n$ docker exec -it ctn_node /bin/bash\n\nFor Window guy run this command before start it\n$ export COMPOSE_CONVERT_WINDOWS_PATHS=0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fdocker-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fdocker-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fdocker-examples/lists"}