wurmlab / oswitch

Provides access to complex Bioinformatics software (even BioLinux!) in just one command.
76 stars 9 forks source link

update docker image #30

Closed mictadlo closed 9 years ago

mictadlo commented 9 years ago

Hello, great project. How is it possible to update regularly a docker image such as bio-linux?

Thank you in advance.

Cheers,

Michal

yeban commented 9 years ago

Thanks :).

To pull a new, updated image you could specify a tag together with the repo/image name, like you would do with docker.

oswitch yeban/biolinux:8 # Similar to, docker run -it yeban/biolinux:8

But I'm not sure if that's what you are looking for. If you want to update the BioLinux image you pulled in from some repo (say, yeban/biolinux) you could do something like:

oswitch yeban/biolinux:8

# in container
# update biolinux
sudo apt-get update
sudo apt-get upgrade # or dist-upgrade

# outside container
docker ps # from here note id of the biolinux container (e.g., biolinux-1234)
docker commit -m "Updated packages." <biolinux-1234> mictadlo/yeban_biolinux_8:20150906
docker push ...

# use the new, updated image
oswitch mictadlo/yeban_biolinux_8:20150906
mictadlo commented 9 years ago

Thank you.