docker mysql

[root@nckmvdsla19211 ~]# docker pull mysql/mysql
Using default tag: latest
Trying to pull repository registry.access.redhat.com/mysql/mysql ...
Trying to pull repository docker.io/mysql/mysql ...
repository docker.io/mysql/mysql not found: does not exist or no pull access
[root@nckmvdsla19211 ~]# docker pull phpmyadmin/phpmyadmin
Using default tag: latest
Trying to pull repository registry.access.redhat.com/phpmyadmin/phpmyadmin ...
Trying to pull repository docker.io/phpmyadmin/phpmyadmin ...
latest: Pulling from docker.io/phpmyadmin/phpmyadmin
605ce1bd3f31: Pull complete
2f5aa494661d: Pull complete
7963c90c835a: Pull complete
a3f2a1640434: Pull complete
69ff9d23d9a2: Pull complete
fafe88c0441e: Pull complete
f1db1a6a7bbd: Pull complete
11dcd6040069: Pull complete
adce10c47b33: Pull complete
32099b1f9e51: Pull complete
f70d4d32691e: Pull complete
11303ae0e7af: Pull complete
15f736e0463f: Pull complete
cc089234c358: Pull complete
4dda94dfcaa9: Pull complete
a4f9fde46d7e: Pull complete
22b383219685: Pull complete
Digest: sha256:e69230cdc50ab925ab2ce58cc189aa8f595a171331c9f58e1f99cc7f24e7a100
Status: Downloaded newer image for docker.io/phpmyadmin/phpmyadmin:latest
[root@nckmvdsla19211 ~]# docker pull mysql
Using default tag: latest
Trying to pull repository registry.access.redhat.com/mysql ...
Trying to pull repository docker.io/library/mysql ...
latest: Pulling from docker.io/library/mysql
Digest: sha256:d60c13a2bfdbbeb9cf1c84fd3cb0a1577b2bbaeec11e44bf345f4da90586e9e1
Status: Image is up to date for docker.io/mysql:latest
[root@nckmvdsla19211 ~]# docker -ps
unknown shorthand flag: 'p' in -ps
See 'docker --help'.

Usage:  docker COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default "/root/.dock                                                      er")
  -D, --debug              Enable debug mode
      --help               Print usage
  -H, --host list          Daemon socket(s) to connect to (default [])
  -l, --log-level string   Set the logging level ("debug", "info", "warn", "erro                                                      r", "fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/root/.d                                                      ocker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/root/.docker/                                                      cert.pem")
      --tlskey string      Path to TLS key file (default "/root/.docker/key.pem"                                                      )
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Management Commands:
checkpoint  Manage checkpoints
container   Manage containers
image       Manage images
network     Manage networks
node        Manage Swarm nodes
plugin      Manage plugins
secret      Manage Docker secrets
service     Manage services
stack       Manage Docker stacks
swarm       Manage Swarm
system      Manage Docker
volume      Manage volumes

Commands:
attachAttach to a running container
buildBuild an image from a Dockerfile
commit      Create a new image from a container's changes
cp          Copy files/folders between a container and the local filesystem
createCreate a new container
deployDeploy a new stack or update an existing stack
diff        Inspect changes on a container's filesystem
events      Get real time events from the server
exec        Run a command in a running container
exportExport a container's filesystem as a tar archive
history     Show the history of an image
images      List images
importImport the contents from a tarball to create a filesystem image
info        Display system-wide information
inspect     Return low-level information on Docker objects
killKill one or more running containers
loadLoad an image from a tar archive or STDIN
login       Log in to a Docker registry
logout      Log out from a Docker registry
logs        Fetch the logs of a container
pausePause all processes within one or more containers
port        List port mappings or a specific mapping for the container
ps          List containers
pullPull an image or a repository from a registry
pushPush an image or a repository to a registry
renameRename a container
restartRestart one or more containers
rm          Remove one or more containers
rmi         Remove one or more images
runRun a command in a new container
saveSave one or more images to a tar archive (streamed to STDOUT by de                                                      fault)
searchSearch the Docker Hub for images
startStart one or more stopped containers
stats       Display a live stream of container(s) resource usage statistics
stopStop one or more running containers
tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top         Display the running processes of a container
unpauseUnpause all processes within one or more containers
updateUpdate configuration of one or more containers
version     Show the Docker version information
wait        Block until one or more containers stop, then print their exit cod                                                      es

Run 'docker COMMAND --help' for more information on a command.

[root@nckmvdsla19211 ~]# dockerps
CONTAINER ID        IMAGE                                      COMMAND                                                                        CREATED             STATUS              PORTS                    NAMES
00421c5d12ad        microsoft/mssql-server-linux:2017-latest   "/opt/mssql/bin/s                                                      q..."   24 hours ago        Up 24 hours         0.0.0.0:1433->1433/tcp   sql1
[root@nckmvdsla19211 ~]# docker run --name mysql -e MYSQL_ROOT_PASSWORD= -d mysq                                                      l
a179d5b690020503103488e46902c17660d8432e601e1f09115ab4ee9d00306c
[root@nckmvdsla19211 ~]# msyql
-bash: msyql: command not found
[root@nckmvdsla19211 ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 73
Server version: 10.1.20-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 




[root@nckmvdsla19211 html]# docker run -ti --name some-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql

Comments