{"id":20531886,"url":"https://github.com/ad5001/dockerbashoop","last_synced_at":"2025-10-16T01:38:39.720Z","repository":{"id":71031306,"uuid":"445549917","full_name":"Ad5001/DockerBashOOP","owner":"Ad5001","description":" Implementation of BashOOP for Docker.","archived":false,"fork":false,"pushed_at":"2022-01-07T14:40:41.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T12:56:11.729Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ad5001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-01-07T14:33:21.000Z","updated_at":"2022-01-07T14:40:44.000Z","dependencies_parsed_at":"2023-08-28T18:48:14.592Z","dependency_job_id":null,"html_url":"https://github.com/Ad5001/DockerBashOOP","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/Ad5001%2FDockerBashOOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ad5001%2FDockerBashOOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ad5001%2FDockerBashOOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ad5001%2FDockerBashOOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ad5001","download_url":"https://codeload.github.com/Ad5001/DockerBashOOP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138800,"owners_count":20078007,"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-16T00:10:39.909Z","updated_at":"2025-10-16T01:38:39.594Z","avatar_url":"https://github.com/Ad5001.png","language":null,"readme":"# DockerBashOOP\n---\n\nSmall implementation of Docker for BashOOP.\n\n### Documentation\n\nYou can generate the documentation using my [BashDocGenerator](https://git.ad5001.eu/Ad5001/BashDocGenerator).\n\n### How to use\n\nImport the library:\n```bash\n. $OOP_ROOT/oop.sh\n\nimportNamespace \"path/to/Docker.shn\"\n```\n\n**Note**: The guides require to know how to use [BashOOP Objects](https://git.ad5001.eu/Ad5001/BashOOP).\n\nYou can store several docker containers in a single Docker.Container object.    \nThe way it's constructed is using keywords that acts as filter for all current Docker containers (both running and stopped).\n\nFor example:    \nFind all stopped containers based on the image ubuntu:14:04 :\n```bash\nDocker.Container c with_image \"ubuntu:14.04\" stopped\n```\n**Note**: If you're executing this as a non root user, you may be prompted for your account password in order to access docker data.\n\nA list of all filters can be found in the documentation.\n\nYou can see if any object was found using `$c.found`, and the count of containers found using `$c.count`.\n\nYou can then access their properties like you would any other object:\n```bash\n# Their container name\n$c.name\n\n# Their container id\n$c.id\n\n# Their base image\n$c.image\n\n# Amongst others...\n# And assign them:\nnames=\"$($c.name)\"\n```\n\n**Note**: When several containers are matched, the value for each container will be put on a new line.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad5001%2Fdockerbashoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad5001%2Fdockerbashoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad5001%2Fdockerbashoop/lists"}