This is an old revision of the document!


Running docker container

docker run -v /srv/elgoog:/mnt -d algoo
  • -d detached
  • -v volumes to bind in format /path/at/host:/path/in/container
  • -m memory limit
  • -c cpu limit

Copying files between host and container

  • The cleanest way how to copy files between host and container is to mount an image to the container
    docker run -v /path/to/hostdir:/mnt $container
    cp /mnt/sourcefile /path/to/destfile
 
docker/start.1425378413.txt.gz · Last modified: 2015/03/03 11:26 by vondra