docker / docker/docker-py

Create/run container with image defined with SDK

Open
#2,942 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello
How can I define following Dockerfile with python sdk, instead of building image from file?

FROM node:12
WORKDIR /usr/src/app

COPY . .
RUN npm install
EXPOSE 8080
CMD [ "node", "index.js" ]

I've checked documents in client.images, but there are no guide about workdir or copy...

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

The request concerns client.images documentation and the shown Dockerfile; start by reviewing that documentation and the SDK’s existing image-building guidance. Determine whether a guide can cover workdir and copy, and consider the request complete only when the supported approach is documented with an equivalent example.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.