{"id":18292523,"url":"https://github.com/marclop/docker-intro","last_synced_at":"2025-04-09T07:55:23.073Z","repository":{"id":81024738,"uuid":"62221065","full_name":"marclop/docker-intro","owner":"marclop","description":"Docker intro repository","archived":false,"fork":false,"pushed_at":"2016-07-05T15:09:50.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T02:19:07.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/marclop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-29T11:36:36.000Z","updated_at":"2016-06-29T11:36:44.000Z","dependencies_parsed_at":"2023-07-11T16:34:30.680Z","dependency_job_id":null,"html_url":"https://github.com/marclop/docker-intro","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/marclop%2Fdocker-intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fdocker-intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fdocker-intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marclop%2Fdocker-intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marclop","download_url":"https://codeload.github.com/marclop/docker-intro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999852,"owners_count":21031044,"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":[],"created_at":"2024-11-05T14:18:24.237Z","updated_at":"2025-04-09T07:55:23.056Z","avatar_url":"https://github.com/marclop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction to Docker\n\nThis repo is tied to the presentation given at [CMP Group](http://teamcmp.com)\n\n# Run containers\n\n```\n$ docker run -ti --rm alpine:latest /bin/sh\n/ # hostname\n1ccd4c0df2fb\n```\n\n# Delete containers\n\n```bash\n$ docker run alpine:latest echo 'true'\ntrue\n$ docker ps -a\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES\n5ed58dbc02ad        alpine:latest       \"echo true\"         48 seconds ago      Exited (0) 47 seconds ago                       lonely_elion\n$ docker rm -v lonely_elion\n```\n\n# Dockerfile\n\n```bash\n$ docker build -t marclop/awesome-term awesome-term\n[ .. ]\n$ docker run -ti --rm marclop/awesome-term\nbash-4.3#\n$ docker run -d --name myterm marclop/awesome-term sleep 30\na8fc2362543aaa3f983c562f9094cc26db2be3e244113558a37952e85ffd4f3b\n$ docker ps\nCONTAINER ID        IMAGE                  COMMAND             CREATED             STATUS              PORTS               NAMES\na8fc2362543a        marclop/awesome-term   \"sleep 30\"          2 seconds ago       Up 1 seconds                            myterm\n```\n\n# Link containers (simple)\n\n```bash\n$ docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=1234 mariadb\nbbf7e87848e0de44f59947eefbce06051f3baba7187f2a4cf4e8ec49ec4c5932\n$ docker build -t marclop/awesome-mysql-client awesome-mysql-client\n[ .. ]\n# Run mysql agains the Database typing the password\n$ docker run -ti -e USER=root -e HOST=mariadb --link mariadb marclop/awesome-mysql-client\nEnter password:\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\nYour MariaDB connection id is 2\nServer version: 10.1.14-MariaDB-1~jessie mariadb.org binary distribution\n\nCopyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB [(none)]\u003e\n\n# Connect to MySQL without typing password\n\n$ docker run -ti -e USER=root -e HOST=mariadb -e PASS=1234 --link mariadb marclop/awesome-mysql-client\n```\n\n\n# Using docker-compose to ease life\n\n```bash\n$ cd awesome-mysql-client\n$ docker-compose -p demo up\n```\n\n# Real world scenario\n\n```bash\n$ cd awesome-app\n$ docker-compose up --build\n[ .. ]\n$ curl localhost:3000\nI said Whale Hello 2 times!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarclop%2Fdocker-intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarclop%2Fdocker-intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarclop%2Fdocker-intro/lists"}