Skip to content

Instantly share code, notes, and snippets.

View dalguete's full-sized avatar
💭
┏━┓ ︵ /(^.^/)

Daniel Dalgo dalguete

💭
┏━┓ ︵ /(^.^/)
View GitHub Profile
@dalguete
dalguete / gist:19a9d984e8a749eefaab7ec9aea6be01
Created May 12, 2018 17:24
Useful to extract the apparmor profile created by Docker when installed
#!/bin/bash
[ "`echo "$@" | grep -e "docker"`" ] && echo "$@" | cut -c 5- | xargs -I {} cat {} > /tmp/apparmor-profile-docker-default
/sbin/apparmor_parser_original "$@"
### Keybase proof
I hereby claim:
* I am dalguete on github.
* I am dalguete (https://keybase.io/dalguete) on keybase.
* I have a public key ASDcSZrPwPkgviCP94WOxnzr6OH7pssM6emBmmIyEQO7Cgo
To claim this, I am signing this object:
@dalguete
dalguete / Dockerfile
Created August 11, 2014 04:27
Here some files to reproduce the MySQL-Privileged problem
# MySQL
FROM ubuntu
RUN apt-get update
RUN echo "mysql-server-5.5 mysql-server/root_password password root123" | debconf-set-selections
RUN echo "mysql-server-5.5 mysql-server/root_password_again password root123" | debconf-set-selections
RUN echo "mysql-server-5.5 mysql-server/root_password seen true" | debconf-set-selections
RUN echo "mysql-server-5.5 mysql-server/root_password_again seen true" | debconf-set-selections
RUN apt-get install -y mysql-server mysql-client telnet