Skip to content

Instantly share code, notes, and snippets.

@debborafernandess
Created July 27, 2017 23:19
Show Gist options
  • Save debborafernandess/f6d444c936b306fdc5e71b13b2218a93 to your computer and use it in GitHub Desktop.
Save debborafernandess/f6d444c936b306fdc5e71b13b2218a93 to your computer and use it in GitHub Desktop.
Install
- https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
setup docker as root ( to do not use sudo )
>
Create the docker group.
$ sudo groupadd docker
Add your user to the docker group.
$ sudo usermod -aG docker $USER
Log out and log back in so that your group membership is re-evaluated.
>
Criando um container
>
docker run -t bioritmo/smart-system
docker-compose build
docker run --rm --volumes-from smartsystem_db_1 -v $(pwd):/backup busybox tar jxvf /backup/backup.tar.bz2 --strip-components=3 -C /var/lib/mysql
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment