1

I'm trying to run wackopicko on my MacBook Air using the provided docker image. When I run the command:

docker run -p 127.0.0.1:8080:80 -it adamdoupe/wackopicko 

I get the following output: enter image description here

I'm able to access the application on localhost, create a new user and login with that user. My issue is with accessing the database on my terminal to see the user information. According to the output, MySQL has been installed and a root and admin have been created. However, I don't have MySQL installed on my laptop. If I run the command:

mysql -uroot

I get the following output:

mysql: command not found

I have tried installing mysql and I logged in as root, however, I didn't see the wackopicko database and users that were supposed to be created when I run the docker file. I'm not familiar with docker, but I tried looking online to find a solution and haven't found one yet. Any help would be very much appreciated!

1 Answer 1

2

You have mysql installed inside the docker container, to run what you want, first you have to know the container id:

docker ps

Then go inside container with:

docker exec -it yourcontainerid /bin/bash

Once inside the container

mysql -uroot 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.