-
Notifications
You must be signed in to change notification settings - Fork 1
docker
Pavel Serikov edited this page Mar 28, 2018
·
12 revisions
sudo touch ssh
в разделе boot
passwd
sudo nano /etc/hostname
sudo nano /etc/hosts
curl -sSL https://get.docker.com | sh -
docker pull pavelsr/fabkey
docker run -v ${PWD}:/fabkey/data pavelsr/fabkey perl db.pl -a demo_data -d data/skud.db
docker run -v ${PWD}:/fabkey/data pavelsr/fabkey perl db.pl -a deploy_db -d data/skud.db
docker run -v ${PWD}:/fabkey/data pavelsr/fabkey perl db.pl -a manage users insert telegram_username serikoff -d data/skud.db
docker run -v ${PWD}:/fabkey/data perl db.pl -a manage doors insert name Main_door -d data/skud.db
docker run -v ${PWD}:/fabkey/data pavelsr/fabkey perl db.pl --help
Новый контейнер
docker run -e "FOO=bar"
Существующий контейнер, после dd:
docker exec -i CONTAINER_ID /bin/bash -c "export VAR1=VAL1 && export VAR2=VAL2 && run_cmd"
Запуск:
Пины rpi по умолчанию