HUB
Sign inSign up
sqlite logo

alpine/sqlite

Sponsored OSS

By alpine

•Updated 1 day ago

Image
9

100K+

alpine/sqlite repository overview

SQLite3⁠

DockerHub Badge

⁠quick start
# if "test.db" is not exist, it will be created automatically
docker run -ti --rm -v $(pwd):/apps -w /apps alpine/sqlite test.db "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);"

# If you can run it agian, it will prompt the table has been created
docker run -ti --rm -v $(pwd):/apps -w /apps alpine/sqlite test.db "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);"
Error: in prepare, table users already exists
  CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);
               ^--- error here

ls -l test.db

Tag summary
Recent tags
Content type
Image
Digest
sha256:6fd65441c…
Size
4.3 MB
Last updated
1 day ago
docker pull alpine/sqlite:latest
This week's pulls