Skip to content
MyyyrPublic

About

Dockerfile for pytorch and basics python packages with a simpler bash command

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Build

To build the image use this command :

cd path/to/flamingo
bash ./build.sh name

With name the name of your image.

Run

The command line to run the image with gpus support is :

docker run --rm -ti --init --runtime=nvidia --ipc=host --volume="$PWD:/app" -e NVIDIA_VISIBLE_DEVICES=all -w /app pytorch:flamingo bash

flamingo

If you want to create an bash alias to run a container using the command flamingo you have to :

  1. Verify fou have the file ~/.flamingo.sh. If not, go to the Build part.

  2. Copy/past the code bellow at the end of your ~/.bashrc

. ~/.flamingo.sh
  1. Run source ~/.bashrc

Its done.

The default container run as root, you can use flamingo -u to not do it. Use flamingo -p script.py to run a script. If you want to run a script in detach mode do flamingo -d.

Requirements

Add in the Dockerfile using RUN pip install your_package At the end of the file, then follow instructions of the Build part.

About

Dockerfile for pytorch and basics python packages with a simpler bash command

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages