Running YugabyteDB in a docker container #112
LexLuthr
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Install Docker
Before installing YugabyteDB, ensure that you have the Docker runtime installed on your localhost. To download and install Docker, select one of the following environments:
Docker for Mac
Docker for CentOS
Docker for Ubuntu
Docker for Debian
Docker for Windows
Pull the YugabyteDB Docker Image
Open a terminal and pull the YugabyteDB Docker image:
Create a Directory for Yugabyte Home
Create a local directory to be used as the Yugabyte home directory inside the container:
Replace
/path/to/yugabyte-home
with your desired path. This path will be used to store all YugabyteDB related data.Run the YugabyteDB Container
Run the following command to start the YugabyteDB container with the specified ports bound and the local directory mounted as a volume:
Explanation of the Command:
Verify the Deployment
Check the running container with:
Access YugabyteDB
Access the YugabyteDB web interfaces using the http://localhost:15433
Connect to the database using YCQL or YSQL clients on ports 9042 and 5433, respectively.
You've successfully deployed a YugabyteDB container on Docker with the specified ports bound and a local filesystem mounted as the Yugabyte home directory.
Beta Was this translation helpful? Give feedback.
All reactions