docker / docker/docker-py

Equivqlent of docker run --expose {port} in docker-py

Open
#2,242 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/question
Dominant language
Python
Stars
7.2k
Forks
1.7k
Avg merge
13d 8h
Merged PRs (30d)
2

Description

Hi

I've been trying to expose ports with this library as you would with docker create --expose 80 but have been unable to. I can't seem to find anything in the documentation on how to do this.
Any help would be appreciated.

OS: Ubuntu 18.04

~$ pip3 freeze | grep docker && python3 --version && docker version
docker==3.6.0
docker-pycreds==0.4.0
Python 3.6.7
Client:
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:49:01 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.0
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       4d60db4
  Built:            Wed Nov  7 00:16:44 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by checking the docker-py documentation and its Docker Engine API handling for the equivalent of docker create --expose 80; done means identifying whether an existing Python call supports this and documenting or implementing the missing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.