You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will make sure that the data stored in the database is not lost when the image is stopped and started again.
@@ -121,22 +121,22 @@ To create a new database specify the database name in the `DB_NAME` variable. Th
121
121
122
122
```bash
123
123
docker run --name mysql -d \
124
-
-e 'DB_NAME=dbname' sameersbn/mysql:5.7.22-1
124
+
-e 'DB_NAME=dbname' sameersbn/mysql:5.7.24
125
125
```
126
126
127
127
You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2*
The above command will create a user *dbuser* with the password *dbpass* and will also create a database named *dbname*. The *dbuser* user will have full/remote access to the database.
@@ -152,7 +152,7 @@ By default the new database will be created with the `utf8` character set and `u
Optionally you can specify the `DB_REMOTE_ROOT_HOST` variable to define the address space within which remote access should be permitted. This defaults to `172.17.0.1` and should suffice for most cases.
@@ -211,11 +211,11 @@ docker stop mysql
211
211
-**Step 2**: Update the docker image.
212
212
213
213
```bash
214
-
docker pull sameersbn/mysql:5.7.22-1
214
+
docker pull sameersbn/mysql:5.7.24
215
215
```
216
216
217
217
-**Step 3**: Start the image
218
218
219
219
```bash
220
-
docker run --name mysql -d [OPTIONS] sameersbn/mysql:5.7.22-1
220
+
docker run --name mysql -d [OPTIONS] sameersbn/mysql:5.7.24
0 commit comments