Skip to main content

A CLI for working with docker on OSX

Project description

Build Status PyPI PyPI - License Code style: black GitHub Pipenv locked Python version

osxdocker

A CLI for working with docker on OSX

Currently it only handles docker logs, because I found it annoying starting up a screen session to get to the docker vm every time I wanted to clear logs. See: https://stackoverflow.com/questions/42527291/clear-logs-in-native-docker-on-mac

Install

pip install osxdocker

Usage

# clear logs
osxdocker clear_log $some_container_name

# get log path
osxdocker log_path $some_container_name

# list available commands
osxdocker

Dev Install

# install dev dependencies, install package as symlink to avoid reinstall whenever code changes
pipenv install
pipenv run local_install
pipenv run osxdocker # only runs from pipenv in dev
# install from test pypi, allow pull from non-test pypi for fire
pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple osxdocker

Dev tools

I set this project up using https://github.com/takluyver/flit/

# build dist
pipenv run flit build

# publish to test pypi
pipenv run publish_test

# really publish
pipenv run publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osxdocker-0.0.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

osxdocker-0.0.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page