こすたろーんエンジニアの試行錯誤部屋

作成物の備忘録を書いていきますー

Build mysql environment with jetsonNX and docker

To learn about databases, we built a mysql environment
This is a memorandum.

contents

スポンサーリンク

abstract

how to build mysql environment with jetsonNX and docker

1.crate a docker file

FROM ubuntu/mysql:8.0-20.04_beta

# Time Zone
ENV TZ Asia/Tokyo

RUN apt update

2.run docker container

Build docker image and start mysql after launching container.

sudo docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=[your_password] mysql
sudo docker exec -it mysql mysql -u root -p

->You will be asked for your password, so log in with the password you set during the docker build.

If the following is displayed, startup is complete

スポンサーリンク

参考

hub.docker.com timesaving.hatenablog.com