Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add readme fix ssl certs #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y libaio1 && rm -rf /var/lib/apt/lists/*
# gpg: key 5072E1F5: public key "MySQL Release Engineering <[email protected]>" imported
RUN gpg --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

RUN apt-get update && apt-get install -y curl --no-install-recommends && rm -rf /var/lib/apt/lists/* \
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -SL "http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.73-linux-x86_64-glibc23.tar.gz" -o mysql.tar.gz \
&& apt-get purge -y --auto-remove curl \
&& mkdir /usr/local/mysql \
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
Docker image for old MySQL 5.1 database, based on [official MySQL image](https://github.com/docker-library/mysql)

Build with:

```
docker build -t user/mysql51:latest .
```

Verify with:
```
docker images | grep user/mysql51
```

Run with (data at host:/var/lib/mysql) :
```
docker run --name mysql51 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345 -v /var/lib/mysql:/var/lib/mysql -d user/mysql51:latest
```

View log with:
```
docker logs mysql51
```

Command-Line connect to mysql51 on host with:

```
mysql -h localhost --port=3306 --user=root --password --protocol=tcp
# And type password 12345
```