qfdk

qfdk

喜欢碎碎念的小 🐭, 对开源情有独钟, 会说 🇫🇷, 喜欢折腾 “黑科技”, 徒步是日常
github

Personal Docker image commands, always useful

Since the optical fiber was broken, I have been struggling for a long time, and finally got the internet connection. The village network is finally working.
What have I been up to recently? ChatGPT is still very popular, so I decided to try the paid version.
I also received an invitation for the chatGPT-4 API recently. I might give it a try later.

Now, let's get to the point. Here are some Docker image commands that I use:

# Create a MySQL container. Remember not to choose the latest version, it can be troublesome. If there are no specific requirements, version 5.6 is good enough.
docker run --restart always --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:5.6
# Create a connection between phpmyadmin and the database.
docker run --restart always --name phpmyadmin -p 8888:80 --link mysql:db -d phpmyadmin/phpmyadmin:latest

# Redis
docker run --restart always --name redis -p 6379:6379 -d redis

# Image with SSH
docker run -d -P rastasheep/ubuntu-sshd:latest

# MongoDB
docker run --restart always -p 27017:27017 --name mongo -d mongo

# MSSQL
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=JeSuis1SupetStrongMDP" \
   -p 1433:1433 --name MSSQL \
   -d mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04

These are the Docker images that I frequently use.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.