-
How to run tests inside container?
docker run --rm -v <path>:/tests prussia2016/selenium_python_chrome bash -c "export PYTHONPATH=.:/tests/$projectpath/src;pip install -r /tests/$projectpath/resource/req.txt;python /tests/$projectpath/<entry file>"
-
grant user to access docker
usermod -a -G docker <user>
-
grant user to access folder /
sudo chown -R <user>: /<folder>
-
start/stop/delete docker container
docker start/stop/rm/restart <container>
-
do exec in docker container and run shell in it
docker exec -it <container> bash
-
show all docker process
$ docker ps $ docker ps -all
-
To update restart policy for one or more containers:
$ docker update --restart=on-failure:3 abebf7571666 hopeful_morse
-
present container name with status
$ docker stats $(docker ps --format={{.Names}})